Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeriveRendezvousPrivateKey ¶
func DeriveRendezvousPrivateKey(payload *Payload) ed25519.PrivateKey
Types ¶
type Description ¶
type Description struct {
// contains filtered or unexported fields
}
todo: Use proper arc struct
func GenerateDescription ¶
func GenerateDescription(dimension float64, data KikCodePayload) (*Description, error)
func (*Description) ToSvg ¶
func (d *Description) ToSvg(opts *QrCodeRenderOptions) string
type IdempotencyKey ¶
type IdempotencyKey [nonceSize]byte
func GenerateRandomIdempotencyKey ¶
func GenerateRandomIdempotencyKey() IdempotencyKey
type KikCodePayload ¶
type KikCodePayload []byte
func CreateKikCodePayload ¶
func CreateKikCodePayload(data []byte) KikCodePayload
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
func NewPayloadFromKinAmount ¶
func NewPayloadFromKinAmount(kind Kind, quarks uint64, nonce IdempotencyKey) *Payload
func (*Payload) GetIdempotencyKey ¶
func (p *Payload) GetIdempotencyKey() IdempotencyKey
func (*Payload) ToQrCodeDescription ¶
func (p *Payload) ToQrCodeDescription(dimension float64) (*Description, error)
func (*Payload) ToRendezvousKey ¶
func (p *Payload) ToRendezvousKey() ed25519.PrivateKey
Click to show internal directories.
Click to hide internal directories.