21 lines
417 B
Java
21 lines
417 B
Java
package com.luminiasoft.bitshares;
|
|
|
|
import com.luminiasoft.bitshares.interfaces.ByteSerializable;
|
|
import org.bitcoinj.core.ECKey;
|
|
|
|
/**
|
|
* Created by nelson on 11/30/16.
|
|
*/
|
|
public class PublicKey implements ByteSerializable {
|
|
private ECKey publicKey;
|
|
|
|
public PublicKey(ECKey key) {
|
|
this.publicKey = key;
|
|
}
|
|
|
|
@Override
|
|
public byte[] toBytes() {
|
|
return publicKey.getPubKey();
|
|
}
|
|
}
|