Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyAccessCode = errors.New("empty access code provided")
)
View Source
var ErrInvalidKeyType = func(kty string) error { return fmt.Errorf("invalid key type: %s", kty) }
View Source
var ProofAssemblerError = errors.New("couldn't assemble proofs")
Functions ¶
Types ¶
type AccessControlType ¶ added in v1.2.4
type AccessControlType int
const ( TotpAccessControl AccessControlType = iota SecretAccessControl AccessControlType = iota )
func ParseAccessControlType ¶ added in v1.2.4
func ParseAccessControlType(value string) (AccessControlType, error)
func (AccessControlType) String ¶ added in v1.2.4
func (t AccessControlType) String() string
type Certification ¶
type File ¶
type File struct { File []byte // contains filtered or unexported fields }
func (File) ContentType ¶
func (File) FileExtension ¶
func (File) FilenameWithExtension ¶ added in v1.3.0
type HostingType ¶
type HostingType int
const ( IPFS HostingType = iota HOSTED HostingType = iota LOCAL HostingType = iota )
func ParseHostingType ¶
func ParseHostingType(value string) (HostingType, error)
func (HostingType) String ¶
func (h HostingType) String() string
type LocalKey ¶
type LocalKey struct {
// contains filtered or unexported fields
}
func NewLocalKey ¶
func NewLocalKeyID ¶
func (LocalKey) KeyTypeStr ¶
type LocalStorageStrategy ¶
type LocalStorageStrategy int64
const ( LocalStorageStrategyUnknown LocalStorageStrategy = iota LocalStorageStrategyHash LocalStorageStrategyFilename )
func LocalStorageStrategyFromString ¶
func LocalStorageStrategyFromString(strategy string) LocalStorageStrategy
func (LocalStorageStrategy) String ¶
func (s LocalStorageStrategy) String() string
type MerkleTree ¶ added in v1.3.0
type MerkleTree struct { Root string Proof map[string]MerkleTreeProof }
type MerkleTreeProof ¶ added in v1.3.0
func (MerkleTreeProof) ConvertToBloockProof ¶ added in v1.3.0
func (m MerkleTreeProof) ConvertToBloockProof(hash string) (Proof, error)
type Message ¶ added in v1.3.0
type Message struct { Hash string Root string AnchorID int Proof MerkleTreeProof }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.