contracts/ens: revert bmt to keccak256 (#19323)
* contracts/ens: revert bmt to keccak256 * contracts/ens: fix keccak256 hash code comment
This commit is contained in:
@ -30,8 +30,8 @@ const (
|
||||
nsIpfs = 0xe3
|
||||
nsSwarm = 0xe4
|
||||
|
||||
swarmTypecode = 0xfa //swarm manifest, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
||||
swarmHashtype = 0xd6 // BMT, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
||||
swarmTypecode = 0xfa // swarm manifest, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
||||
swarmHashtype = 0x1b // keccak256, see https://github.com/multiformats/multicodec/blob/master/table.csv
|
||||
|
||||
hashLength = 32
|
||||
)
|
||||
@ -106,7 +106,7 @@ func EncodeSwarmHash(hash common.Hash) ([]byte, error) {
|
||||
nsSwarm, //swarm namespace
|
||||
cidv1, // CIDv1
|
||||
swarmTypecode, // swarm hash
|
||||
swarmHashtype, // swarm bmt hash
|
||||
swarmHashtype, // keccak256 hash
|
||||
hashLength, //hash length. 32 bytes
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user