mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
Clarify how ApiId is being generated (#9519)
* Clarify how `ApiId` is being generated * Clarify more
This commit is contained in:
@@ -98,6 +98,11 @@ pub mod embed;
|
||||
pub use sp_version_proc_macro::runtime_version;
|
||||
|
||||
/// The identity of a particular API interface that the runtime might provide.
|
||||
///
|
||||
/// The id is generated by hashing the name of the runtime api with BLAKE2 using a hash size
|
||||
/// of 8 bytes.
|
||||
///
|
||||
/// The name of the runtime api is the name of the trait when using `decl_runtime_apis!` macro.
|
||||
pub type ApiId = [u8; 8];
|
||||
|
||||
/// A vector of pairs of `ApiId` and a `u32` for version.
|
||||
|
||||
Reference in New Issue
Block a user