Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreimageCondition ¶
PreimageCondition calculates a sha256 hash and then
Types ¶
type Authenticate ¶
type Authenticate struct{}
Authenticate implements x.Authenticator and provides authentication based on public-key signatures.
func (Authenticate) GetConditions ¶
func (a Authenticate) GetConditions(ctx weave.Context) []weave.Condition
GetConditions returns which preimages have authorized the current Context. May be nil
func (Authenticate) HasAddress ¶
HasAddress returns true if the given address had the preimage permission in the current Context.
type Decorator ¶
type Decorator struct{}
Decorator adds permissions to context based on preimages
Click to show internal directories.
Click to hide internal directories.