"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CryptoActorStubWithType = exports.CryptoActorStub = void 0;
class CryptoActorStub {
    constructor(json) {
        Object.assign(this, json);
    }
    static fromDataOwner(dataOwnerWithType) {
        return new CryptoActorStub({
            id: dataOwnerWithType.id,
            rev: dataOwnerWithType.rev,
            hcPartyKeys: dataOwnerWithType.hcPartyKeys,
            aesExchangeKeys: dataOwnerWithType.aesExchangeKeys,
            transferKeys: dataOwnerWithType.transferKeys,
            privateKeyShamirPartitions: dataOwnerWithType.privateKeyShamirPartitions,
            publicKeysForOaepWithSha256: dataOwnerWithType.publicKeysForOaepWithSha256,
            publicKey: dataOwnerWithType.publicKey,
            tags: dataOwnerWithType.tags,
            parentId: dataOwnerWithType.parentId,
        });
    }
}
exports.CryptoActorStub = CryptoActorStub;
class CryptoActorStubWithType {
    constructor(json) {
        this.stub = new CryptoActorStub(json.stub);
        this.type = json.type;
    }
    static fromDataOwner(dataOwnerWithType) {
        return new CryptoActorStubWithType({
            stub: CryptoActorStub.fromDataOwner(dataOwnerWithType.dataOwner),
            type: dataOwnerWithType.type,
        });
    }
}
exports.CryptoActorStubWithType = CryptoActorStubWithType;
//# sourceMappingURL=CryptoActorStub.js.map