MidnightKeyRole

Midnight blockchain key roles as defined in the Midnight Wallet SDK.

Midnight uses BIP-32 hierarchical deterministic (HD) wallet structure with custom roles for different key purposes.

Derivation Path:

m / 44' / 2400' / account' / role / index

Where:

  • 44' = BIP-44 purpose (hardened)

  • 2400' = Midnight coin type (hardened)

  • account' = Account index (hardened, typically 0)

  • role = One of the roles defined below (NOT hardened)

  • index = Address index (NOT hardened, typically 0)

Reference:

  • Midnight Wallet SDK: https://github.com/midnightntwrk/midnight-wallet

  • BIP-44: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki

Entries

Link copied to clipboard

NightExternal - Used for unshielded receiving addresses.

Link copied to clipboard

NightInternal - Used for unshielded change addresses.

Link copied to clipboard

Dust - Used for Dust protocol addresses.

Link copied to clipboard

Zswap - Used for shielded (private) addresses.

Link copied to clipboard

Metadata - Reserved for metadata-related operations.

Link copied to clipboard

Identity - Used for sigil access keys (Kuira-specific).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val index: Int

The numeric role index used in the derivation path

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.