Class AddressExtension
This extension class enables some convenient methods (sugar for the most part) to deal with Address.
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public static class AddressExtension : object
Methods
| Improve this Doc View SourceToAddress(PublicKey)
Derives the corresponding Address from a PublicKey.
This enables a code like publicKey.ToAddress()
instead
of new Address(publicKey)
.
Declaration
public static Address ToAddress(this PublicKey publicKey)
Parameters
Type | Name | Description |
---|---|---|
PublicKey | publicKey |
Returns
Type | Description |
---|---|
Address | The corresponding Address derived from
|