public class SR25519
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SR25519_CHAINCODE_SIZE |
static int |
SR25519_KEYPAIR_SIZE |
static int |
SR25519_PUBLIC_SIZE |
static int |
SR25519_SECRET_SIZE |
static int |
SR25519_SEED_SIZE |
static int |
SR25519_SIGNATURE_SIZE |
Constructor and Description |
---|
SR25519() |
Modifier and Type | Method and Description |
---|---|
void |
sr25519_derive_keypair_hard(byte[] keypair_out,
byte[] pair_ptr,
byte[] cc_ptr) |
void |
sr25519_derive_keypair_soft(byte[] keypair_out,
byte[] pair_ptr,
byte[] cc_ptr) |
void |
sr25519_derive_public_soft(byte[] keypair_out,
byte[] pair_ptr,
byte[] cc_ptr) |
void |
sr25519_keypair_from_seed(byte[] keypair_out,
byte[] seed_ptr) |
void |
sr25519_sign(byte[] signature_out,
byte[] public_ptr,
byte[] secret_ptr,
byte[] message_ptr,
int message_length) |
boolean |
sr25519_verify(byte[] signature_ptr,
byte[] message_ptr,
int message_length,
byte[] public_ptr) |
void |
test1(byte[] input,
byte[] output) |
public static final int SR25519_CHAINCODE_SIZE
public static final int SR25519_KEYPAIR_SIZE
public static final int SR25519_PUBLIC_SIZE
public static final int SR25519_SECRET_SIZE
public static final int SR25519_SEED_SIZE
public static final int SR25519_SIGNATURE_SIZE
public void test1(byte[] input, byte[] output)
public void sr25519_derive_keypair_hard(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
public void sr25519_derive_keypair_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
public void sr25519_derive_public_soft(byte[] keypair_out, byte[] pair_ptr, byte[] cc_ptr)
public void sr25519_keypair_from_seed(byte[] keypair_out, byte[] seed_ptr)
public void sr25519_sign(byte[] signature_out, byte[] public_ptr, byte[] secret_ptr, byte[] message_ptr, int message_length)
public boolean sr25519_verify(byte[] signature_ptr, byte[] message_ptr, int message_length, byte[] public_ptr)