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 BloockProof ¶ added in v1.3.2
type BloockProof struct {
	Leaves []string
	Nodes  []string
	Bitmap string
	Depth  string
	Root   string
	Anchor interface{}
}
    func JoinBloockMultiProofs ¶ added in v1.3.2
func JoinBloockMultiProofs(bloockProofs []BloockProof) (BloockProof, error)
func (BloockProof) AssembleProof ¶ added in v1.3.2
func (p BloockProof) AssembleProof(subProof []BloockProof) (BloockProof, error)
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) ParseToBloockProof ¶ added in v1.3.2
func (m MerkleTreeProof) ParseToBloockProof(hash string, root string) (BloockProof, error)
type Message ¶ added in v1.3.0
type Message struct {
	Hash     string
	Root     string
	AnchorID int
	Proof    MerkleTreeProof
}
    type NormalizedProof ¶ added in v1.3.2
type NormalizedProof struct {
	Depths utils.BitsetInt
	Bitmap utils.BitsetBool
	Hashes []string
	Leaves []string
	Root   string
	Anchor interface{}
}
    func NormalizedProofFromBloockProof ¶ added in v1.3.2
func NormalizedProofFromBloockProof(proofs []BloockProof) ([]NormalizedProof, error)
func (NormalizedProof) ToBloockProof ¶ added in v1.3.2
func (p NormalizedProof) ToBloockProof() (BloockProof, error)
      
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.