noa

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

README

noa

Your Ark companion.

Installation

go install github.com/louisinger/noa@latest

Or build from source:

make install

Usage

address
noa address <address_ark>

Decodes an ARK address and displays:

  • Address ARK
  • Version and HRP (Human Readable Part)
  • Public Keys (signer and tapkey)
  • Script information (hex and asm)
script
noa script <script_hex>

Decodes a script and displays:

  • ASM disassembly
  • Ark Closure information (type and fields)
note
fromTxid
noa note fromTxid <txid_string>

Generates a note closure from a transaction ID (32-byte hash) and displays:

  • Tapkey (hex)
  • Script (hex and asm)

The txid is used as the preimage hash for the note closure, which is then used to generate the taproot tapkey and corresponding script.

taptree
decode
noa taptree decode <taptree_hex>

Decodes a taptree (hex-encoded) and displays:

  • All scripts in the taptree (hex and asm)
  • Output script (hex and asm)
encode
noa taptree encode <script1_hex> [script2_hex] ...

Encodes one or more scripts into a taptree and displays the encoded taptree (hex).

asset
packet decode
noa asset packet decode <script_hex>

Decodes an asset packet from a script (hex-encoded) and displays:

  • Asset ID
  • Asset amount
  • Asset metadata (if present)

Asset packets are encoded in Bitcoin scripts and contain information about assets being transferred in Ark transactions.

psbt
decode
noa psbt decode <psbt_base64>

Decodes a PSBT (Partially Signed Bitcoin Transaction) from base64 or hex format and displays:

  • Global transaction information (version, locktime, txid)
  • Inputs with:
    • Previous outpoint and sequence
    • Redeem scripts and witness scripts
    • BIP32 derivation paths
    • Witness UTXO information
    • ARK PSBT fields (when present):
      • ConditionWitness
      • CosignerPublicKey
      • VtxoTaprootTree
      • VtxoTreeExpiry
  • Outputs with:
    • Value and script (hex and asm)
    • Redeem scripts and witness scripts
    • BIP32 derivation paths
    • Asset packet information (when present in output scripts)

The command automatically detects whether the input is base64 or hex encoded.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL