cryptoSignKeypair static method
Implementation
static KeyPair cryptoSignKeypair() {
final _pk = calloc<Uint8>(cryptoSignPublickeybytes);
final _sk = calloc<Uint8>(cryptoSignSecretkeybytes);
try {
_cryptoSign
.crypto_sign_keypair(_pk, _sk)
.mustSucceed('crypto_sign_keypair');
return KeyPair(
pk: _pk.toList(cryptoSignPublickeybytes),
sk: _sk.toList(cryptoSignSecretkeybytes));
} finally {
calloc.free(_pk);
calloc.free(_sk);
}
}