PrivateKey constructor
PrivateKey(
- Uint8List buf
Create a PrivateKey from a 32 byte Buffer @param {Uint8List} buf - private key
Implementation
PrivateKey(Uint8List buf) {
if (buf.length != 32) {
throw new ArgumentError('buf must be 32 bytes');
}
this.sk = buf;
}