Documentation ¶
Index ¶
- Variables
- func GetActor(auth chain.Auth) crypto.PublicKey
- func GetSigner(auth chain.Auth) crypto.PublicKey
- func UnmarshalED25519(p *codec.Packer, _ *warp.Message) (chain.Auth, error)
- type ED25519
- func (d *ED25519) AsyncVerify(msg []byte) error
- func (d *ED25519) CanDeduct(ctx context.Context, db chain.Database, amount uint64) error
- func (d *ED25519) Deduct(ctx context.Context, db chain.Database, amount uint64) error
- func (d *ED25519) Marshal(p *codec.Packer)
- func (*ED25519) MaxUnits(chain.Rules) uint64
- func (d *ED25519) Payer() []byte
- func (d *ED25519) Refund(ctx context.Context, db chain.Database, amount uint64) error
- func (d *ED25519) StateKeys() [][]byte
- func (*ED25519) ValidRange(chain.Rules) (int64, int64)
- func (d *ED25519) Verify(_ context.Context, r chain.Rules, _ chain.Database, _ chain.Action) (uint64, error)
- type ED25519Factory
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSignature = errors.New("invalid signature")
Functions ¶
Types ¶
type ED25519 ¶
type ED25519 struct { Signer crypto.PublicKey `json:"signer"` Signature crypto.Signature `json:"signature"` }
func (*ED25519) AsyncVerify ¶
type ED25519Factory ¶
type ED25519Factory struct {
// contains filtered or unexported fields
}
func NewED25519Factory ¶
func NewED25519Factory(priv crypto.PrivateKey) *ED25519Factory
Click to show internal directories.
Click to hide internal directories.