Skip to content

Commit

Permalink
Merge branch 'source' into lbc
Browse files Browse the repository at this point in the history
  • Loading branch information
xilibi2003 committed Nov 12, 2020
2 parents 116608b + df119e7 commit 8247f4c
Show file tree
Hide file tree
Showing 118 changed files with 11,067 additions and 2,302 deletions.
Binary file modified docs/assets/frame-arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/frame-runtime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/frame-v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
620 changes: 620 additions & 0 deletions docs/assets/runtime-macros/app-crypto-expanded.rs

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docs/assets/runtime-macros/app-crypto.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
use sp_core::crypto::KeyTypeId;

pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"demo");
pub mod crypto {
use crate::KEY_TYPE;
use sp_runtime::{
app_crypto::{app_crypto, sr25519},
traits::Verify,
MultiSignature, MultiSigner,
};

app_crypto!(sr25519, KEY_TYPE);

pub struct TestAuthId;
// implemented for ocw-runtime
impl frame_system::offchain::AppCrypto<MultiSigner, MultiSignature> for TestAuthId {
type RuntimeAppPublic = Public;
type GenericSignature = sp_core::sr25519::Signature;
type GenericPublic = sp_core::sr25519::Public;
}
}
Loading

0 comments on commit 8247f4c

Please sign in to comment.