Comparing version 1.1.11 to 1.1.12
@@ -196,10 +196,27 @@ export { MetadataUpdate, MetadataTransition, MetadataMap, MinaNFTMetadataUpdate, MinaNFTMetadataUpdateProof, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
update: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
merge: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof MetadataTransition; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
update: [typeof MetadataUpdate]; | ||
merge: [typeof SelfProof, typeof SelfProof]; | ||
}; | ||
rawMethods: { | ||
update: (publicInput: MetadataTransition, ...args: [MetadataUpdate] & any[]) => void; | ||
merge: (publicInput: MetadataTransition, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -206,0 +223,0 @@ update: (publicInput: MetadataTransition, ...args: [MetadataUpdate] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<MetadataTransition, void>>; |
@@ -167,3 +167,3 @@ export { MinaNFT }; | ||
*/ | ||
static verify(deployer: PrivateKey, verifier: PublicKey, nft: PublicKey, proof: RedactedMinaNFTMapStateProof): Promise<void>; | ||
static verify(deployer: PrivateKey, verifier: PublicKey, nft: PublicKey, tokenId: Field, proof: RedactedMinaNFTMapStateProof): Promise<void>; | ||
} |
@@ -862,3 +862,3 @@ "use strict"; | ||
*/ | ||
static async verify(deployer, verifier, nft, proof) { | ||
static async verify(deployer, verifier, nft, tokenId, proof) { | ||
const address = nft; | ||
@@ -872,3 +872,3 @@ await MinaNFT.compileVerifier(); | ||
const tx = await o1js_1.Mina.transaction({ sender, fee: await MinaNFT.fee(), memo: "minanft.io" }, () => { | ||
zkApp.verifyRedactedMetadata(address, proof); | ||
zkApp.verifyRedactedMetadata(address, tokenId, proof); | ||
}); | ||
@@ -875,0 +875,0 @@ await tx.prove(); |
@@ -141,10 +141,18 @@ export { BadgeData, BadgeDataWitness, MinaNFTBadgeCalculation, MinaNFTBadgeProof, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
create: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof BadgeData; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
create: [typeof BadgeDataWitness]; | ||
}; | ||
rawMethods: { | ||
create: (publicInput: BadgeData, ...args: [BadgeDataWitness] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -151,0 +159,0 @@ create: (publicInput: BadgeData, ...args: [BadgeDataWitness] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<BadgeData, void>>; |
@@ -151,10 +151,27 @@ export { RedactedMinaNFTMapCalculation, RedactedMinaNFTMapState, RedactedMinaNFTMapStateProof, MapElement, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
create: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
merge: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof RedactedMinaNFTMapState; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
create: [typeof MapElement, typeof MetadataWitness, typeof MetadataWitness]; | ||
merge: [typeof SelfProof, typeof SelfProof]; | ||
}; | ||
rawMethods: { | ||
create: (publicInput: RedactedMinaNFTMapState, ...args: [MapElement, MetadataWitness, MetadataWitness] & any[]) => void; | ||
merge: (publicInput: RedactedMinaNFTMapState, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -161,0 +178,0 @@ create: (publicInput: RedactedMinaNFTMapState, ...args: [MapElement, MetadataWitness, MetadataWitness] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<RedactedMinaNFTMapState, void>>; |
export { MinaNFTVerifier }; | ||
import { DeployArgs, SmartContract, PublicKey } from "o1js"; | ||
import { DeployArgs, SmartContract, PublicKey, Field } from "o1js"; | ||
import { RedactedMinaNFTMapStateProof } from "./redactedmap"; | ||
declare class MinaNFTVerifier extends SmartContract { | ||
deploy(args: DeployArgs): void; | ||
verifyRedactedMetadata(nft: PublicKey, proof: RedactedMinaNFTMapStateProof): void; | ||
verifyRedactedMetadata(nft: PublicKey, tokenId: Field, proof: RedactedMinaNFTMapStateProof): void; | ||
} |
@@ -28,4 +28,4 @@ "use strict"; | ||
} | ||
verifyRedactedMetadata(nft, proof) { | ||
const minanft = new nft_1.MinaNFTContract(nft); | ||
verifyRedactedMetadata(nft, tokenId, proof) { | ||
const minanft = new nft_1.MinaNFTContract(nft, tokenId); | ||
const nftMetadata = minanft.metadata.get(); | ||
@@ -41,4 +41,5 @@ metadata_1.Metadata.assertEquals(nftMetadata, proof.publicInput.originalRoot); | ||
__metadata("design:paramtypes", [o1js_1.PublicKey, | ||
o1js_1.Field, | ||
redactedmap_1.RedactedMinaNFTMapStateProof]), | ||
__metadata("design:returntype", void 0) | ||
], MinaNFTVerifier.prototype, "verifyRedactedMetadata", null); |
@@ -196,10 +196,27 @@ export { MetadataUpdate, MetadataTransition, MetadataMap, MinaNFTMetadataUpdate, MinaNFTMetadataUpdateProof, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
update: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
merge: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof MetadataTransition; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
update: [typeof MetadataUpdate]; | ||
merge: [typeof SelfProof, typeof SelfProof]; | ||
}; | ||
rawMethods: { | ||
update: (publicInput: MetadataTransition, ...args: [MetadataUpdate] & any[]) => void; | ||
merge: (publicInput: MetadataTransition, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -206,0 +223,0 @@ update: (publicInput: MetadataTransition, ...args: [MetadataUpdate] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<MetadataTransition, void>>; |
@@ -167,3 +167,3 @@ export { MinaNFT }; | ||
*/ | ||
static verify(deployer: PrivateKey, verifier: PublicKey, nft: PublicKey, proof: RedactedMinaNFTMapStateProof): Promise<void>; | ||
static verify(deployer: PrivateKey, verifier: PublicKey, nft: PublicKey, tokenId: Field, proof: RedactedMinaNFTMapStateProof): Promise<void>; | ||
} |
@@ -862,3 +862,3 @@ "use strict"; | ||
*/ | ||
static async verify(deployer, verifier, nft, proof) { | ||
static async verify(deployer, verifier, nft, tokenId, proof) { | ||
const address = nft; | ||
@@ -872,3 +872,3 @@ await MinaNFT.compileVerifier(); | ||
const tx = await o1js_1.Mina.transaction({ sender, fee: await MinaNFT.fee(), memo: "minanft.io" }, () => { | ||
zkApp.verifyRedactedMetadata(address, proof); | ||
zkApp.verifyRedactedMetadata(address, tokenId, proof); | ||
}); | ||
@@ -875,0 +875,0 @@ await tx.prove(); |
@@ -141,10 +141,18 @@ export { BadgeData, BadgeDataWitness, MinaNFTBadgeCalculation, MinaNFTBadgeProof, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
create: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof BadgeData; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
create: [typeof BadgeDataWitness]; | ||
}; | ||
rawMethods: { | ||
create: (publicInput: BadgeData, ...args: [BadgeDataWitness] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -151,0 +159,0 @@ create: (publicInput: BadgeData, ...args: [BadgeDataWitness] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<BadgeData, void>>; |
@@ -151,10 +151,27 @@ export { RedactedMinaNFTMapCalculation, RedactedMinaNFTMapState, RedactedMinaNFTMapStateProof, MapElement, }; | ||
analyzeMethods: () => { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}[]; | ||
create: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
merge: { | ||
rows: number; | ||
digest: string; | ||
result: unknown; | ||
gates: import("o1js/dist/node/snarky").Gate[]; | ||
publicInputSize: number; | ||
}; | ||
}; | ||
publicInputType: typeof RedactedMinaNFTMapState; | ||
publicOutputType: import("o1js/dist/node/lib/circuit_value").ProvablePureExtended<void, null>; | ||
privateInputTypes: { | ||
create: [typeof MapElement, typeof MetadataWitness, typeof MetadataWitness]; | ||
merge: [typeof SelfProof, typeof SelfProof]; | ||
}; | ||
rawMethods: { | ||
create: (publicInput: RedactedMinaNFTMapState, ...args: [MapElement, MetadataWitness, MetadataWitness] & any[]) => void; | ||
merge: (publicInput: RedactedMinaNFTMapState, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => void; | ||
}; | ||
} & { | ||
@@ -161,0 +178,0 @@ create: (publicInput: RedactedMinaNFTMapState, ...args: [MapElement, MetadataWitness, MetadataWitness] & any[]) => Promise<import("o1js/dist/node/lib/proof_system").Proof<RedactedMinaNFTMapState, void>>; |
export { MinaNFTVerifier }; | ||
import { DeployArgs, SmartContract, PublicKey } from "o1js"; | ||
import { DeployArgs, SmartContract, PublicKey, Field } from "o1js"; | ||
import { RedactedMinaNFTMapStateProof } from "./redactedmap"; | ||
declare class MinaNFTVerifier extends SmartContract { | ||
deploy(args: DeployArgs): void; | ||
verifyRedactedMetadata(nft: PublicKey, proof: RedactedMinaNFTMapStateProof): void; | ||
verifyRedactedMetadata(nft: PublicKey, tokenId: Field, proof: RedactedMinaNFTMapStateProof): void; | ||
} |
@@ -28,4 +28,4 @@ "use strict"; | ||
} | ||
verifyRedactedMetadata(nft, proof) { | ||
const minanft = new nft_1.MinaNFTContract(nft); | ||
verifyRedactedMetadata(nft, tokenId, proof) { | ||
const minanft = new nft_1.MinaNFTContract(nft, tokenId); | ||
const nftMetadata = minanft.metadata.get(); | ||
@@ -41,4 +41,5 @@ metadata_1.Metadata.assertEquals(nftMetadata, proof.publicInput.originalRoot); | ||
__metadata("design:paramtypes", [o1js_1.PublicKey, | ||
o1js_1.Field, | ||
redactedmap_1.RedactedMinaNFTMapStateProof]), | ||
__metadata("design:returntype", void 0) | ||
], MinaNFTVerifier.prototype, "verifyRedactedMetadata", null); |
{ | ||
"name": "minanft", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "MinaNFT Typescript/JavaScript integration library", | ||
@@ -5,0 +5,0 @@ "author": "dfst.io", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
575162
11446