Package org.polkadot.utils.crypto
Interface ISR25591
-
- All Known Implementing Classes:
EmptySR25591,JniSR25591
public interface ISR25591
-
-
Field Summary
Fields Modifier and Type Field Description static intSR25519_CHAINCODE_SIZEstatic intSR25519_KEYPAIR_SIZEstatic intSR25519_PUBLIC_SIZEstatic intSR25519_SECRET_SIZEstatic intSR25519_SEED_SIZEstatic intSR25519_SIGNATURE_SIZE
-
Method Summary
Modifier and Type Method Description voidsr25519_derive_keypair_hard(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)voidsr25519_derive_keypair_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)voidsr25519_derive_public_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)voidsr25519_keypair_from_seed(byte[] keypair_out, byte[] seed_ptr)voidsr25519_sign(byte[] signature_out, byte[] public_ptr, byte[] secret_ptr, byte[] message_ptr, int message_length)booleansr25519_verify(byte[] signature_ptr, byte[] message_ptr, int message_length, byte[] public_ptr)
-
-
-
Field Detail
-
SR25519_CHAINCODE_SIZE
static final int SR25519_CHAINCODE_SIZE
- See Also:
- Constant Field Values
-
SR25519_KEYPAIR_SIZE
static final int SR25519_KEYPAIR_SIZE
- See Also:
- Constant Field Values
-
SR25519_PUBLIC_SIZE
static final int SR25519_PUBLIC_SIZE
- See Also:
- Constant Field Values
-
SR25519_SECRET_SIZE
static final int SR25519_SECRET_SIZE
- See Also:
- Constant Field Values
-
SR25519_SEED_SIZE
static final int SR25519_SEED_SIZE
- See Also:
- Constant Field Values
-
SR25519_SIGNATURE_SIZE
static final int SR25519_SIGNATURE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
sr25519_derive_keypair_hard
void sr25519_derive_keypair_hard(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
-
sr25519_derive_keypair_soft
void sr25519_derive_keypair_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
-
sr25519_derive_public_soft
void sr25519_derive_public_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
-
sr25519_keypair_from_seed
void sr25519_keypair_from_seed(byte[] keypair_out, byte[] seed_ptr)
-
sr25519_sign
void sr25519_sign(byte[] signature_out, byte[] public_ptr, byte[] secret_ptr, byte[] message_ptr, int message_length)
-
sr25519_verify
boolean sr25519_verify(byte[] signature_ptr, byte[] message_ptr, int message_length, byte[] public_ptr)
-
-