Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IV = [8]uint64{
0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1,
0x510e527fade682d1, 0x9b05688c2b3e6c1f, 0x1f83d9abfb41bd6b, 0x5be0cd19137e2179,
}
IV is an initialization vector for BLAKE2b
Functions ¶
Types ¶
type Precompiled ¶
type Precompiled struct {
// contains filtered or unexported fields
}
Precompiled is the runtime for the precompiled contracts
func NewPrecompiled ¶
func NewPrecompiled() *Precompiled
NewPrecompiled creates a new runtime for the precompiled contracts
func (*Precompiled) CanRun ¶
func (p *Precompiled) CanRun(c *runtime.Contract, _ runtime.Host, config *chain.ForksInTime) bool
CanRun implements the runtime interface
func (*Precompiled) Name ¶
func (p *Precompiled) Name() string
Name implements the runtime interface
func (*Precompiled) Run ¶
func (p *Precompiled) Run(c *runtime.Contract, _ runtime.Host, config *chain.ForksInTime) *runtime.ExecutionResult
Run runs an execution
Source Files ¶
Click to show internal directories.
Click to hide internal directories.