ztcl::meter pubkey
Gives the hex public key of a seed.
ztcl::meter pubkey SEED
Description
Gives the hex Ed25519 public key of the 32-byte seed SEED, given as 64 hex digits.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| SEED | 64 hex digits | required | The seed of the key pair. |
Returns
64 hex digits.
Examples
Each example of this page runs after package require ztcl::json.
% ztcl::meter pubkey [string repeat 0 64]
3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29
Errors
% ztcl::meter pubkey xyz
a seed is 64 hex digits
-errorcode ZTCL METER KEY
% ztcl::meter pubkey
wrong # args: should be "ztcl::meter pubkey seed"
-errorcode TCL WRONGARGS
Facts
- Capability
meter. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1