mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
latest adoption
This commit is contained in:
parent
8f1e7b016e
commit
d4b6366a4a
@ -22,7 +22,7 @@ export default class DDO {
|
||||
|
||||
public constructor(ddo?: {
|
||||
id?: string,
|
||||
publicKey?: any[],
|
||||
publicKey?: PublicKey[],
|
||||
authentication?: Authentication[],
|
||||
service?: Service[],
|
||||
}) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
export default class PublicKey {
|
||||
public id: string = "did:op:123456789abcdefghi#keys-1"
|
||||
public type: string = "RsaVerificationKey2018"
|
||||
public type: string = "Ed25519VerificationKey2018"
|
||||
public owner: string = "did:op:123456789abcdefghi"
|
||||
public publicKeyPem?: string = "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
||||
public publicKeyBase58?: string = "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
|
||||
|
@ -9,6 +9,7 @@ import DDO from "../ddo/DDO"
|
||||
import Event from "../ddo/Event"
|
||||
import EventHandlers from "../ddo/EventHandlers"
|
||||
import MetaData from "../ddo/MetaData"
|
||||
import PublicKey from "../ddo/PublicKey"
|
||||
import Service from "../ddo/Service"
|
||||
import ContractEvent from "../keeper/Event"
|
||||
import Keeper from "../keeper/Keeper"
|
||||
@ -90,16 +91,10 @@ export default class Ocean {
|
||||
publicKey: [
|
||||
{
|
||||
id: did + "#keys-1",
|
||||
},
|
||||
{
|
||||
type: "Ed25519VerificationKey2018",
|
||||
},
|
||||
{
|
||||
owner: did,
|
||||
},
|
||||
{
|
||||
publicKeyBase58: await publisher.getPublicKey(),
|
||||
},
|
||||
} as PublicKey,
|
||||
],
|
||||
service: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user