addr

command
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 Imported by: 0

README

Read Tezos addresses and public keys

This example shows how Tezos addresses and keys can be detected and decoded.

Code Example

// pubkey
key, err = tezos.ParseKey("edpk....")

// addresss
addr, err = tezos.ParseAddress("tz1...")

Usage

// decode address types
go run . tz1QMREVfenun5z18veejSRjiM44y1QfrfXA
go run . tz2Athio4Vrc1Ge2GdpFAY7dFceVN5eMy6oj
go run . tz3YjPMAXtsCQYzVRoYFPg4n32WAvXEh6QQb
go run . KT1GyeRktoGPEKsWpchWguyy8FAf3aNHkw2T

// decode pubkeys
go run . edpkucde3WUTR2s6KgDBwvR7NiezGyHNj1aGz6WrJg6SeZWHNjDA8N
go run . sppk7aAV5AjmQPcph9SrrKBBeFwj15kMvnByjbvb9mqsTMgUm1ZoHxK
go run . p2pk68CeMSnZ8MhrW6zCJzGfS2VTsFUKK5GwB7Hem3UUuyQH2kHHeij

// create blinded address from address and secret
go run . tz1T1rRqmAk4XtGadNJuNpq8dUdWqLv2Gtq4 06da1e038224114366831e47aee7f128f4675311

Documentation

Overview

Address examples

tz1KzpjBnunNJVABHBnzfG4iuLmphitExW2p tz3gN8NTLNLJg5KRsUU47NHNVHbdhcFXjjaB KT1GyeRktoGPEKsWpchWguyy8FAf3aNHkw2T

Jump to

Keyboard shortcuts

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