Documentation ¶
Index ¶
- func AddIssuerCredentials(client *alaTypes.Connection, signedCredentials []string, ...) ([]string, []string, error)
- func AddSubjectCredentials(client *alaTypes.Connection, signedCredentials []string, ...) ([]string, []string, error)
- func CreateAlastriaIdentity(conn *alaTypes.Connection) (*types.Transaction, error)
- func GetCredentials(conn *alaTypes.Connection, signedCredentials []string, ...) ([]*alaTypes.PSMHashStatuses, error)
- func GetCurrentPublicKey(conn *alaTypes.Connection, agentAddress common.Address) (string, error)
- func GetDIDGivenAddress(conn *alaTypes.Connection, address common.Address) (*alaTypes.Did, error)
- func GetDIDGivenPublicKey(conn *alaTypes.Connection, publicKey string) (*alaTypes.Did, error)
- func HexToTx(txStr string) (*types.Transaction, error)
- func IdentityKeys(conn *alaTypes.Connection, agentAddress common.Address) (string, error)
- func NewClient(args *alaTypes.ClientConf) (*alaTypes.Connection, error)
- func NewDid(network, networkId, proxyAddress string) *alaTypes.Did
- func NewDidFromString(didStr string) (*alaTypes.Did, error)
- func PrepareAlastriaId(conn *alaTypes.Connection, newActorPublicKey string) (*types.Transaction, error)
- func PublicKeyToAddress(publicKey string) (common.Address, error)
- func SendTx(conn *alaTypes.Connection, tx *types.Transaction) error
- func SetKeystore(conn *alaTypes.Connection, ksConfig *alaTypes.KeystoreConfig) error
- func SignJWT(conn *alaTypes.Connection, jwt interface{}) (string, error)
- func TxToHex(tx_ *types.Transaction) (string, error)
- func VerifyJWT(signedJWT string, publicKey string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIssuerCredentials ¶
func AddSubjectCredentials ¶
func CreateAlastriaIdentity ¶
func CreateAlastriaIdentity(conn *alaTypes.Connection) (*types.Transaction, error)
func GetCredentials ¶
func GetCredentials(conn *alaTypes.Connection, signedCredentials []string, subjectDid *alaTypes.Did) ([]*alaTypes.PSMHashStatuses, error)
func GetCurrentPublicKey ¶
func GetDIDGivenAddress ¶
func GetDIDGivenPublicKey ¶
func IdentityKeys ¶
func NewClient ¶
func NewClient(args *alaTypes.ClientConf) (*alaTypes.Connection, error)
Initializes the client that any actor interacting with the network should use. It can be: subject, issuer, or service provider. args.NodeUrl is mandatory args.Keystore is not mandatory, but it is required if you want to sign JWT or tx
func PrepareAlastriaId ¶
func PrepareAlastriaId(conn *alaTypes.Connection, newActorPublicKey string) (*types.Transaction, error)
func SendTx ¶
func SendTx(conn *alaTypes.Connection, tx *types.Transaction) error
Sends a transaction to the network. It will wait until the transaction is mined blocking the current thread checking once every second. conn needs to have a client and keystore set
func SetKeystore ¶
func SetKeystore(conn *alaTypes.Connection, ksConfig *alaTypes.KeystoreConfig) error
Set the keystore that will be used to sign the transactions and JWTs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.