def encode
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as Ed25519import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
127# 32 bytes, written 2^5 one (one == 1): the byte count stays symbolic, so the
128# checker never expands an encoding (and the SHA-512 over it) into bytes
129def encode(+one: Nat, +p: Nat, a: EPt) -> List<&2, U32>:
130 encode_n(C.shift(5n, one), p, a)
Uses (6)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:public_body
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519:sign_body
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/top:enc_rel
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/top:public_body_rel
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/top:rb_eq
- …