Expand description
Generate and inspect Arweave JWK wallets.
An Arweave wallet is an RSA-4096 key pair stored as a JSON Web Key (JWK).
The public exponent must be 65537. The wallet address is
base64url(SHA-256(n)), where n is the RSA modulus.
Structs§
- Jwk
- Arweave RSA private key in JWK form (RFC 7517 / RFC 7518).
- Wallet
- A generated Arweave wallet: address plus JWK private key.
Enums§
Constants§
- KEY_
BITS - RSA modulus size required by Arweave.
- PUBLIC_
EXPONENT - Public exponent required by Arweave (
65537, JWKe="AQAB").
Functions§
- address_
from_ n - Wallet address from the JWK
nfield:base64url(SHA-256(decode(n))). - address_
from_ n_ bytes - Wallet address from the raw RSA modulus bytes.
- b64url_
decode - Base64URL-decode a string without padding.
- b64url_
encode - Base64URL-encode bytes without padding.