pof

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package pof provides a mechanism to generate proofs of funding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SKActivationRequest

type SKActivationRequest struct {
	Pubkey jsonb.PK `json:"pubkey,omitempty"`
	Pof    *T       `json:"pof,omitempty"`
}

type T

type T struct {
	Type       string  `json:"type,omitempty"`
	Expiration int64   `json:"expiration,omitempty"`
	Nonce      string  `json:"nonce,omitempty"`
	Signature  jsonb.B `json:"signature,omitempty"`
}

func New

func New(s signer.Signer, poftype string, duration int64) (*T, error)

func (*T) Digest

func (t *T) Digest() string

func (*T) IsExpiredAt

func (t *T) IsExpiredAt(utime int64) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL