Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PedersenArray ¶
PedersenArray implements Pedersen array hashing.
func Poseidon ¶ added in v0.2.1
Poseidon implements the Poseidon hash.
func PoseidonArray ¶ added in v0.2.1
PoseidonArray calculates Poseidon hash over elems If len(elems) is odd, pads with [1] If len(elems) is even, pads with [1, 0]
PoseidonArray implements Poseidon array hashing.
func StarknetKeccak ¶
StarknetKeccak implements Starknet keccak
Types ¶
type PedersenDigest ¶ added in v0.6.2
type PedersenDigest struct {
// contains filtered or unexported fields
}
func (*PedersenDigest) Finish ¶ added in v0.6.2
func (d *PedersenDigest) Finish() *felt.Felt
type PoseidonDigest ¶ added in v0.6.2
type PoseidonDigest struct {
// contains filtered or unexported fields
}
func (*PoseidonDigest) Finish ¶ added in v0.6.2
func (d *PoseidonDigest) Finish() *felt.Felt
Click to show internal directories.
Click to hide internal directories.