def sign_with
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as Ed25519import Base
273def sign_with(+one: Nat, +p: Nat, d: Nat, +h: List<&2, U32>, +msg: List<&2, U32>) -> List<&2, U32>:
274 match d:
275 case 0n:
276 sign_body(one, p, 0n, h, msg)
277 case 1n+ +e:
278 sign_body(one, p, 1n+e, h, msg)