sign

fun sign(secretKey: ByteArray, pubKey: ByteArray = publicKey): ByteArray

Sign this item with the given ed25519 key pair, storing the resulting signature. This mirrors item::assign(entry v, salt, seq, pk, sk), which signs the bencoded value and remembers m_sig.

Return

the 64-byte signature (also stored in signature).