// An Ed25519 seed is 32 bytes: another length stops the actor, on both // backends (ADR 0067). import std/bytes import std/crypto import std/io import std/string pub fn main :: -> () / { let seed = bytes.from_string (string.repeat "7" 32) io.println "{bytes.length (crypto.ed25519_public_key seed)}" let short = bytes.slice seed 0 31 io.println "never printed {bytes.length (crypto.ed25519_sign short seed)}" } //> 32 //! panic: crypto: an Ed25519 seed is 32 bytes, not 31