Class ApvCommand
Assembly: Libplanet.Extensions.Cocona.dll
Syntax
Methods
|
Improve this Doc
View Source
Analyze(String, Boolean)
Declaration
[Command(Description = "Parse and analyze a given app protocol version token.")]
public void Analyze([Argument(Name = "APV-TOKEN", Description = "An app protocol version token to analyze. Read from the standard input if omitted.")] string token = null, [Option(Description = "Print information of given token as JSON.")] bool json = false)
Parameters
|
Improve this Doc
View Source
Query(String)
Declaration
[Command(Description = "Query app protocol version (a.k.a. APV) of target node.")]
public void Query([Argument(Name = "TARGET", Description = "Comma separated peer information({pubkey},{host},{port}) of target node. (E.g., 027bd36895d68681290e570692ad3736750ceaab37be402442ffb203967f98f7b6,9c.planetarium.dev,31236)")] string peerInfo)
Parameters
Type |
Name |
Description |
String |
peerInfo |
|
|
Improve this Doc
View Source
Sign(Guid, Int32, PassphraseParameters, String, String[])
Declaration
[Command(Description = "Sign a new app protocol version.")]
public void Sign([Argument(Name = "KEY-ID", Description = "A private key to use for signing.")] Guid keyId, [Argument(Name = "VERSION", Description = "A version number to sign.")] int version, PassphraseParameters passphrase, [Option('E', ValueName = "FILE", Description = "Bencodex file to use for extra data. For standard input, use a hyphen (`-'). For an actual file named a hyphen, prepend `./', i.e., `./-'.")] string extraFile = null, [Option('e', ValueName = "KEY=VALUE", Description = "Set a value to a key on extra Bencodex dictionary. Can be applied multiple times (e.g., `-e foo=1 -e bar=baz'). This option implies the extra data to be a Bencodex dictionary, hence cannot be used together with -E/--extra-file option.")] string[] extra = null)
Parameters
|
Improve this Doc
View Source
Verify(String, PublicKey[], Boolean)
Declaration
[Command(Description = "Verify a given app protocol version token's signature.")]
public void Verify([Argument(Name = "APV-TOKEN", Description = "An app protocol version token to verify. Read from the standard input if omitted.")] string token = null, [Option('p', ValueName = "PUBLIC-KEY", Description = "Public key(s) to be used for verification. Can be applied multiple times.")] PublicKey[] publicKeys = null, [Option('K', Description = "Do not use any keys in the key store, but only -p/--public-key options.")] bool noKeyStore = false)
Parameters