bertyvcissuer

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0, MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PathChallenge    = "/challenge"
	PathAuthenticate = "/authenticate"
	PathProof        = "/proof"

	ParamBertyID      = "berty_id"
	ParamState        = "state"
	ParamRedirectURI  = "redirect_uri"
	ParamChallenge    = "challenge"
	ParamChallengeSig = "challenge_sig"
	ParamCode         = "code"
	ParamContext      = "context"
	ParamCredentials  = "credentials"
	ParamIdentifier   = "identifier"
)
View Source
const DefaultRedirectURI = "berty://vc"

Variables

This section is empty.

Functions

func EmbeddedPublicKeyFetcher

func EmbeddedPublicKeyFetcher(issuerID, keyID string) (*verifier.PublicKey, error)

func EmbeddedPublicKeyFetcherAllowList

func EmbeddedPublicKeyFetcherAllowList(allowList []string) func(issuerID, keyID string) (*verifier.PublicKey, error)

func ExtractSubjectFromVC

func ExtractSubjectFromVC(credential *verifiable.Credential) (string, error)

func MakeAuthenticateURL

func MakeAuthenticateURL(serverBaseRoot, flowCtxStr string) string

func MakeProofURL

func MakeProofURL(serverBaseRoot, flowCtxStr string) string

func MakeRedirectSuccessURI

func MakeRedirectSuccessURI(redirectURI, state string, credentials []byte) string

Types

type Client

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

func NewClient

func NewClient(serverRoot string) *Client

func (*Client) Complete

func (c *Client) Complete(uri string) (string, string, *verifiable.Credential, error)

func (*Client) Init

func (c *Client) Init(ctx context.Context, bertyURL string, accountPriv crypto.Signer) (string, error)

Jump to

Keyboard shortcuts

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