org.bitcoinj.wallet
Interface Protos.KeyOrBuilder
- All Superinterfaces:
- com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
- Protos.Key, Protos.Key.Builder
- Enclosing class:
- Protos
public static interface Protos.KeyOrBuilder
- extends com.google.protobuf.MessageOrBuilder
| Methods inherited from interface com.google.protobuf.MessageOrBuilder |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField |
| Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder |
isInitialized |
hasType
boolean hasType()
required .wallet.Key.Type type = 1;
getType
Protos.Key.Type getType()
required .wallet.Key.Type type = 1;
hasPrivateKey
boolean hasPrivateKey()
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
getPrivateKey
com.google.protobuf.ByteString getPrivateKey()
optional bytes private_key = 2;
The private EC key bytes without any ASN.1 wrapping.
hasEncryptedPrivateKey
boolean hasEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information.
When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes.
This is for security of the private key information.
getEncryptedPrivateKey
Protos.EncryptedPrivateKey getEncryptedPrivateKey()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information.
When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes.
This is for security of the private key information.
getEncryptedPrivateKeyOrBuilder
Protos.EncryptedPrivateKeyOrBuilder getEncryptedPrivateKeyOrBuilder()
optional .wallet.EncryptedPrivateKey encrypted_private_key = 6;
The message containing the encrypted private EC key information.
When an EncryptedPrivateKey is present then the (unencrypted) private_key will be a zero length byte array or contain all zeroes.
This is for security of the private key information.
hasPublicKey
boolean hasPublicKey()
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
do lots of slow EC math on startup.
getPublicKey
com.google.protobuf.ByteString getPublicKey()
optional bytes public_key = 3;
The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
do lots of slow EC math on startup.
hasLabel
boolean hasLabel()
optional string label = 4;
User-provided label associated with the key.
getLabel
String getLabel()
optional string label = 4;
User-provided label associated with the key.
getLabelBytes
com.google.protobuf.ByteString getLabelBytes()
optional string label = 4;
User-provided label associated with the key.
hasCreationTimestamp
boolean hasCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point.
getCreationTimestamp
long getCreationTimestamp()
optional int64 creation_timestamp = 5;
Timestamp stored as millis since epoch. Useful for skipping block bodies before this point.
Copyright © 2014. All rights reserved.