okapi

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

README

  1. To find the latest binary packages, go to the output of the action
  2. Click on the latest successful run, scroll down to the artifacts
  3. Download C_header for okapi.h
  4. Dowwnload the OS appropriate artifact (Windows-GNU not Windows)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteBuffer added in v1.5.0

type ByteBuffer struct {
	// contains filtered or unexported fields
}

type DidCommer

type DidCommer interface {
	Pack(request *transport.PackRequest) (*transport.PackResponse, error)
	Unpack(request *transport.UnpackRequest) (*transport.UnpackResponse, error)
	Sign(request *transport.SignRequest) (*transport.SignResponse, error)
	Verify(request *transport.VerifyRequest) (*transport.VerifyResponse, error)
}

DidCommer implements the DIDComm Messaging protocol

func DidComm

func DidComm() DidCommer

DidComm implements the DIDComm Messaging protocol

type DidError

type DidError struct {
	Code         int
	FunctionName string
	Message      string
}

DidError indicates a DID protocol error

func (*DidError) Error

func (d *DidError) Error() string

type DidKeyer

type DidKeyer interface {
	Generate(request *keys.GenerateKeyRequest) (*keys.GenerateKeyResponse, error)
	Resolve(request *keys.ResolveRequest) (*keys.ResolveResponse, error)
}

DidKeyer is the interface that groups the did:key functions

func DidKey

func DidKey() DidKeyer

DidKey returns a DidKeyer that can generate and resolve did:keys

type ExternError added in v1.5.0

type ExternError struct {
	// contains filtered or unexported fields
}

type Hasher added in v1.4.0

Hasher implements Blake3 and Sha2 hash functions

func Hashing added in v1.4.0

func Hashing() Hasher

Hashing implements Blake3 and Sha2 hash functions

type LdProofer

type LdProofer interface {
	CreateProof(request *proofs.CreateProofRequest) (*proofs.CreateProofResponse, error)
}

LdProofer implements Linked-Data Proofs

func LdProofs

func LdProofs() LdProofer

LdProofs implements Linked-Data Proofs

type NativeError added in v1.4.0

type NativeError struct {
	Message       string
	InternalError error
}

NativeError indicates a native protocol error

func (NativeError) Error added in v1.4.0

func (o NativeError) Error() string

type Oberoner

Oberoner implements Oberon authentication

func Oberon

func Oberon() Oberoner

Oberon implements Oberon authentication

type OkapiMetadataer added in v1.6.0

type OkapiMetadataer interface {
	GetMetadata() (*metadata.MetadataResponse, error)
}

Metadataer implements Linked-Data Proofs

func OkapiMetadata added in v1.6.0

func OkapiMetadata() OkapiMetadataer

OkapiMetadata implements Linked-Data Proofs

Directories

Path Synopsis
examples
hashing
keys
proofs
security
transport

Jump to

Keyboard shortcuts

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