public class Account
extends java.lang.Object
| Constructor and Description |
|---|
Account() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createStandardAccount(byte[] pubKey)
Constructs the script hash for the given public key.
|
static boolean |
isStandard(byte[] scriptHash)
Checks if the account with the given script hash is a standard account.
|
public static byte[] createStandardAccount(byte[] pubKey)
More precisely, a verification script is produced from the public key and the hash of that script is returned.
pubKey - The public key to get the script hash for.public static boolean isStandard(byte[] scriptHash)
scriptHash - The script hash to check.True if it is a standard account. False, otherwise.