Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Network build.Network
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge struct{}
Challenge represents a model which generates challenge transactions on developer's account
type JWT ¶
type JWT struct{ Secret string }
JWT represents a generated json web token
type Token ¶
type Token struct { DeveloperSecret string TX *transaction.Transaction Address string // user public key // contains filtered or unexported fields }
Token checks the challenge transaction signed by user on developer's side
func NewToken ¶
NewToken creates a new token handler with provided developer seed, xdr and user address
func (*Token) GetAddress ¶
Address returns the address a current token is issued for
func (*Token) GetKeypair ¶
GetKeypair returns the keypair for developer
func (*Token) GetUserKeypair ¶
func (*Token) TimeBounds ¶
func (t *Token) TimeBounds() *xdr.TimeBounds
TimeBounds returns the time bounds for a given transaction
Click to show internal directories.
Click to hide internal directories.