package info.FrostFS.sdk; import info.FrostFS.sdk.jdo.OwnerId; import info.FrostFS.sdk.jdo.Version; import static info.FrostFS.sdk.KeyExtension.getPrivateKeyFromWIF; import static info.FrostFS.sdk.KeyExtension.loadPublicKey; public class Client { private final OwnerId ownerId; private final Version version = new Version(2, 13); private final byte[] privateKey; private final byte[] publicKey; public Client(String key) { this.privateKey = getPrivateKeyFromWIF(key); this.publicKey = loadPublicKey(privateKey); this.ownerId = OwnerId.fromKey(publicKey); } public OwnerId getOwnerId() { return ownerId; } public Version getVersion() { return version; } public byte[] getPrivateKey() { return privateKey; } public byte[] getPublicKey() { return publicKey; } }