sign abstract method

BuBytes sign({
  1. required List<int> sk,
  2. required List<int> message,
  3. required List<int> publicKey,
  4. CryptoKeyType type = CryptoKeyType.ed25519,
})

Signs message (arbitrary bytes) with sk and 32-byte publicKey. sk is 32 bytes for CryptoKeyType.ed25519/CryptoKeyType.ed25519Blake2b and 64 bytes for CryptoKeyType.ed25519Monero/CryptoKeyType.ed25519Kholaw. type selects the ed25519 domain; returns 64-byte R || s. Throws on invalid type or lengths.

Implementation

BuBytes sign({
  required List<int> sk,
  required List<int> message,
  required List<int> publicKey,
  CryptoKeyType type = CryptoKeyType.ed25519,
});