-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { Hex } from "viem"; | ||
|
||
/** | ||
* A hash value that uniquely identifies a single ENS name. | ||
* Result of `namehash` function as specified in ENSIP-1. | ||
* | ||
* @example | ||
* ``` | ||
* namehash("vitalik.eth") === "0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835" | ||
* ``` | ||
* @link https://docs.ens.domains/ensip/1#namehash-algorithm | ||
*/ | ||
export type Node = Hex; | ||
|
||
/** | ||
* A hash value that identifies only a single part or "label" of an ENS name. | ||
* The labelhash is just the Keccak-256 output for the label. | ||
* | ||
* @link https://docs.ens.domains/ensip/1#labelhash-algorithm | ||
*/ | ||
export type Labelhash = Hex; |