Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Hash256

A 256-bit hash, uppercase hex. NewType("Hash256", str) — at runtime it is a plain str.

Definition

Hash256 = NewType("Hash256", str)

Construction

from dango.utils.types import Hash256
 
h = Hash256("AABBCCDD" * 8)   # 64 hex chars, uppercase

Notes

  • The on-chain identifier for a wallet's public key. Secp256k1Wallet.key_hash produces an Hash256 from the SHA-256 of the compressed pubkey.
  • Wire form is uppercase hex.

See also