mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-30 09:05:52 +00:00
28 lines
401 B
Java
28 lines
401 B
Java
package data.account;
|
|
|
|
import qora.crypto.Crypto;
|
|
|
|
public class PublicKeyAccount extends Account {
|
|
|
|
// Properties
|
|
protected byte[] publicKey;
|
|
|
|
// Constructors
|
|
|
|
public PublicKeyAccount(byte[] publicKey) {
|
|
super(Crypto.toAddress(publicKey));
|
|
|
|
this.publicKey = publicKey;
|
|
}
|
|
|
|
protected PublicKeyAccount() {
|
|
}
|
|
|
|
// Getters/Setters
|
|
|
|
public byte[] getPublicKey() {
|
|
return this.publicKey;
|
|
}
|
|
|
|
}
|