-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
11,067 additions
and
2,302 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.