Documentation
¶
Index ¶
Constants ¶
View Source
const ( PKSize = 29 SKSize = 32 )
View Source
const ( PubStart = "copub:" SecStart = "cosec:" // lel )
View Source
const ( SignOverhead = box.Overhead HashSigLen = 32 + box.Overhead )
View Source
const AddressLen = 16
Variables ¶
View Source
var ZeroNonce = new([24]byte)
Who needs nonces anyway? Every request is idempotent becaue every computation is deterministic. Exactly-once delivery 4 tha win
View Source
var ZeroPK, ZeroSK = new([32]byte), new([32]byte)
ephemeral 32 keypair that everyone knows
Functions ¶
func GenerateKeys ¶
Types ¶
type Address ¶
type Address [AddressLen]byte // can be whatever (probably an ipv6 lel)
type HashSig ¶
type HashSig [HashSigLen]byte
type PK ¶
func DecodePKNoPrefix ¶
Takes a string representation of a public key and returns the byte representation of it
func (PK) Encode ¶
Takes a public key and returns a string representation of it using a custom alphabet
func (PK) EncodeNoPrefix ¶
type SK ¶
func DecodeSKNoPrefix ¶
Takes a string representation of a secret key and returns the byte representation of it
type ThisPeer ¶
Click to show internal directories.
Click to hide internal directories.