Versions in this module Expand all Collapse all v1 v1.0.3 Feb 27, 2025 Changes in this version + const AppOriginSD + const DefaultHashProofCount + const DefaultHashProofTarget + const DefaultProofBlockMinDuration + const DefaultProofBlockRange + const DefaultProofDuration + func ProofByCalcHash(seed string, target string, timeout time.Duration) (types.Hash, []byte, error) + func ValidateHash(seed string, target string, bytes []byte) bool + type EIP155Signer struct + func NewEIP155Signer(forks crypto.ForksInTime, networkID uint64) *EIP155Signer + func (e *EIP155Signer) CalculateV(parity byte) []byte + func (e *EIP155Signer) Hash(resp *EdgeResponse) types.Hash + func (e *EIP155Signer) Provider(resp *EdgeResponse) (types.Address, error) + func (e *EIP155Signer) SignEdgeResp(resp *EdgeResponse, privateKey *ecdsa.PrivateKey) (*EdgeResponse, error) + type EdgeResponse struct + From types.Address + Hash types.Hash + R *big.Int + RespString string + S *big.Int + V *big.Int + func (r *EdgeResponse) Copy() *EdgeResponse + func (r *EdgeResponse) MarshalRLP() []byte + func (r *EdgeResponse) MarshalRLPTo(dst []byte) []byte + func (r *EdgeResponse) MarshalRLPWith(arena *fastrlp.Arena) *fastrlp.Value + func (r *EdgeResponse) UnmarshalRLP(input []byte) error + type Signer interface + CalculateV func(parity byte) []byte + Hash func(resp *EdgeResponse) types.Hash + Provider func(resp *EdgeResponse) (types.Address, error) + SignEdgeResp func(resp *EdgeResponse, priv *ecdsa.PrivateKey) (*EdgeResponse, error)