Interface that represents an SECP256k1 public key Resolver

interface PubkeyResolver {
    pubkey(node: string): Promise<[x: string, y: string]>;
    setPubkey(node: string, x: string, y: string): Promise<Transaction>;
    supportsInterface(interfaceId: string): Promise<boolean>;
}

Hierarchy

  • IERC165
    • PubkeyResolver

Implemented by

Methods

  • Returns the SECP256k1 public key associated with an MNS node. Defined in EIP 619.

    Parameters

    • node: string

      The MNS node to query

    Returns Promise<[x: string, y: string]>

    x and y coordinates of the curve point for the public key.

  • Sets the SECP256k1 public key associated with an MNS node.

    Parameters

    • node: string

      The MNS node to query

    • x: string

      the X coordinate of the curve point for the public key.

    • y: string

      the Y coordinate of the curve point for the public key.

    Returns Promise<Transaction>

    an array of TransactionReceipt objects

  • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.

    This function call must use less than 30 000 gas. Defined in EIP181.

    Parameters

    • interfaceId: string

      The MNS node to query.

    Returns Promise<boolean>

    if the interface is supported