File tree Expand file tree Collapse file tree
coordinator/cosign/types/src/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,22 +22,18 @@ fn sign_cosign(cosign: Cosign, keypair: &schnorrkel::Keypair) -> SignedCosign {
2222 }
2323}
2424
25- /// Returns the public key bytes from the test fixture keypair (seed [0xff; 32])
2625pub fn fixture_public_key ( ) -> [ u8 ; 32 ] {
2726 sr25519_fixture ( ) . public . to_bytes ( )
2827}
2928
30- /// Returns the public key bytes for a keypair with the given seed
3129pub fn public_key_from_seed ( seed : [ u8 ; 32 ] ) -> [ u8 ; 32 ] {
3230 sr25519_fixture_from_seed ( seed) . public . to_bytes ( )
3331}
3432
35- /// Creates a SignedCosign using the test fixture keypair (seed [0xff; 32])
3633pub fn sign_cosign_with_fixture ( cosign : Cosign ) -> SignedCosign {
3734 sign_cosign ( cosign, & sr25519_fixture ( ) )
3835}
3936
40- /// Creates a SignedCosign using a keypair derived from the given seed
4137pub fn sign_cosign_with_seed ( cosign : Cosign , seed : [ u8 ; 32 ] ) -> SignedCosign {
4238 sign_cosign ( cosign, & sr25519_fixture_from_seed ( seed) )
4339}
You can’t perform that action at this time.
0 commit comments