@d20dao/vrf-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ export interface ApiRequest {
2
+ operation: string;
3
+ parameters: Record<string, unknown>;
4
+ responseProjection?: Record<string, string>;
5
+ }
6
+ export interface ApiAttestation {
7
+ timestamp: bigint;
8
+ data: string;
9
+ signature: string;
10
+ }
11
+ export declare function canonicalApiRequest(request: ApiRequest): string;
12
+ export declare function attestationDigest(requestHash: string, a: ApiAttestation): string;
13
+ export declare function hashAttestation(requestHash: string, a: ApiAttestation): string;
14
+ export declare function validateApiSignatureEncoding(signature: string): void;
@@ -0,0 +1,27 @@
1
+ import { AbiCoder, getBytes, hexlify, keccak256, solidityPacked } from "ethers";
2
+ const abi = AbiCoder.defaultAbiCoder();
3
+ function canonical(value) {
4
+ if (Array.isArray(value))
5
+ return value.map(canonical);
6
+ if (value !== null && typeof value === "object")
7
+ return Object.entries(value).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, v]) => [key, canonical(v)]);
8
+ return value;
9
+ }
10
+ export function canonicalApiRequest(request) {
11
+ const parts = [request.operation, canonical(request.parameters)];
12
+ if (request.responseProjection !== undefined)
13
+ parts.push(canonical(request.responseProjection));
14
+ return JSON.stringify(parts);
15
+ }
16
+ export function attestationDigest(requestHash, a) {
17
+ return keccak256(solidityPacked(["bytes32", "uint256", "bytes"], [requestHash, a.timestamp, a.data]));
18
+ }
19
+ export function hashAttestation(requestHash, a) {
20
+ return keccak256(abi.encode(["bytes32", "uint256", "bytes32", "bytes32"], [requestHash, a.timestamp, keccak256(a.data), keccak256(a.signature)]));
21
+ }
22
+ export function validateApiSignatureEncoding(signature) {
23
+ const bytes = getBytes(signature);
24
+ if (bytes.length !== 65 || (bytes[64] !== 27 && bytes[64] !== 28) ||
25
+ BigInt(hexlify(bytes.slice(32, 64))) > 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0n)
26
+ throw new Error("Expected canonical 65-byte low-s EIP-191 signature");
27
+ }
@@ -0,0 +1,37 @@
1
+ import { type MappingSpec } from "./mapping.js";
2
+ export type XY = readonly [bigint, bigint];
3
+ export interface VRFProof {
4
+ pk: XY;
5
+ gamma: XY;
6
+ c: bigint;
7
+ s: bigint;
8
+ seed: bigint;
9
+ uWitness: string;
10
+ cGammaWitness: XY;
11
+ sHashWitness: XY;
12
+ zInv: bigint;
13
+ }
14
+ export interface RequestContext {
15
+ chainId: bigint;
16
+ coordinator: string;
17
+ keyHash: string;
18
+ requestId: bigint;
19
+ consumer: string;
20
+ clientSeed: string;
21
+ mapping: MappingSpec;
22
+ requestBlock: bigint;
23
+ targetBlock: bigint;
24
+ blockHash: string;
25
+ epochId: bigint;
26
+ epochHash: string;
27
+ }
28
+ export declare function deriveRequestSeed(r: RequestContext): bigint;
29
+ export declare function hashPublicKey(pk: XY): string;
30
+ export declare function hashProof(p: VRFProof): string;
31
+ export declare function verifyVRFProof(proof: VRFProof, expectedKey: XY, expectedSeed: bigint): {
32
+ valid: true;
33
+ randomness: string;
34
+ } | {
35
+ valid: false;
36
+ reason: string;
37
+ };
@@ -0,0 +1,87 @@
1
+ // Public-data verification only. Contains no secret-key operations or production proof generation.
2
+ import { secp256k1 } from "@noble/curves/secp256k1";
3
+ import { mod, pow } from "@noble/curves/abstract/modular";
4
+ import { AbiCoder, computeAddress, id, keccak256, solidityPacked, toBeHex } from "ethers";
5
+ import { hashMapping } from "./mapping.js";
6
+ const abi = AbiCoder.defaultAbiCoder();
7
+ const Point = secp256k1.ProjectivePoint;
8
+ const P = secp256k1.CURVE.Fp.ORDER;
9
+ const N = secp256k1.CURVE.n;
10
+ const MAX = (1n << 256n) - 1n;
11
+ export function deriveRequestSeed(r) {
12
+ return BigInt(keccak256(abi.encode(["bytes32", "uint256", "address", "bytes32", "uint256", "address", "bytes32", "bytes32", "uint64", "uint64", "bytes32", "uint64", "bytes32"], [id("D20_VRF_SEED"), r.chainId, r.coordinator, r.keyHash, r.requestId,
13
+ r.consumer, r.clientSeed, hashMapping(r.mapping), r.requestBlock, r.targetBlock, r.blockHash, r.epochId, r.epochHash])));
14
+ }
15
+ export function hashPublicKey(pk) { return keccak256(abi.encode(["uint256[2]"], [pk])); }
16
+ export function hashProof(p) {
17
+ return keccak256(abi.encode([
18
+ "tuple(uint256[2] pk,uint256[2] gamma,uint256 c,uint256 s,uint256 seed,address uWitness,uint256[2] cGammaWitness,uint256[2] sHashWitness,uint256 zInv)",
19
+ ], [p]));
20
+ }
21
+ function xy(point) { const a = point.toAffine(); return [a.x, a.y]; }
22
+ function point(p) {
23
+ if (p[0] < 0n || p[0] >= P || p[1] < 0n || p[1] >= P)
24
+ throw new Error("Non-canonical point");
25
+ const q = Point.fromAffine({ x: p[0], y: p[1] });
26
+ q.assertValidity();
27
+ if (q.equals(Point.ZERO))
28
+ throw new Error("Point at infinity");
29
+ return q;
30
+ }
31
+ function fieldHash(bytes) {
32
+ let x = BigInt(keccak256(bytes));
33
+ while (x >= P)
34
+ x = BigInt(keccak256(toBeHex(x, 32)));
35
+ return x;
36
+ }
37
+ function hashToCurve(pk, input) {
38
+ let x = fieldHash(solidityPacked(["uint256", "uint256[2]", "uint256"], [1n, pk, input]));
39
+ for (;;) {
40
+ const y2 = mod(x * x * x + 7n, P);
41
+ let y = pow(y2, (P + 1n) / 4n, P);
42
+ if (mod(y * y, P) === y2) {
43
+ if (y % 2n)
44
+ y = P - y;
45
+ return point([x, y]);
46
+ }
47
+ x = fieldHash(toBeHex(x, 32));
48
+ }
49
+ }
50
+ /// Verify with EXPECTED key and seed, not values trusted merely because they came in the proof.
51
+ export function verifyVRFProof(proof, expectedKey, expectedSeed) {
52
+ try {
53
+ if (proof.pk[0] !== expectedKey[0] || proof.pk[1] !== expectedKey[1])
54
+ throw new Error("Wrong public key");
55
+ if (proof.seed !== expectedSeed)
56
+ throw new Error("Wrong request seed");
57
+ for (const scalar of [proof.c, proof.s, proof.seed, proof.zInv])
58
+ if (scalar < 0n || scalar > MAX)
59
+ throw new Error("Scalar outside uint256");
60
+ const pk = point(proof.pk), gamma = point(proof.gamma);
61
+ const cg = point(proof.cGammaWitness), sh = point(proof.sHashWitness);
62
+ const c = mod(proof.c, N), s = mod(proof.s, N);
63
+ if (c === 0n || s === 0n)
64
+ throw new Error("Zero scalar");
65
+ const h = hashToCurve(proof.pk, expectedSeed);
66
+ if (!gamma.multiply(c).equals(cg) || !h.multiply(s).equals(sh))
67
+ throw new Error("Invalid multiplication witness");
68
+ if (proof.cGammaWitness[0] === proof.sHashWitness[0])
69
+ throw new Error("Witness points not distinct");
70
+ const lz = mod(proof.sHashWitness[0] - proof.cGammaWitness[0], P);
71
+ const dx = mod(lz * lz, P), dy = mod(lz * lz * lz, P);
72
+ if (mod((dx === dy ? dx : mod(dx * dy, P)) * proof.zInv, P) !== 1n)
73
+ throw new Error("Invalid inverse witness");
74
+ const u = pk.multiply(c).add(Point.BASE.multiply(s));
75
+ const uAddress = computeAddress(`0x${u.toHex(false)}`);
76
+ if (uAddress.toLowerCase() !== proof.uWitness.toLowerCase())
77
+ throw new Error("Invalid U witness");
78
+ const v = cg.add(sh);
79
+ const derivedC = BigInt(keccak256(solidityPacked(["uint256", "uint256[2]", "uint256[2]", "uint256[2]", "uint256[2]", "address"], [2n, xy(h), proof.pk, proof.gamma, xy(v), uAddress])));
80
+ if (derivedC !== proof.c)
81
+ throw new Error("Invalid challenge");
82
+ return { valid: true, randomness: keccak256(abi.encode(["uint256", "uint256[2]"], [3n, proof.gamma])) };
83
+ }
84
+ catch (error) {
85
+ return { valid: false, reason: error instanceof Error ? error.message : "Invalid proof" };
86
+ }
87
+ }
@@ -0,0 +1,45 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity 0.8.28;
3
+
4
+ import {D20VRFConsumer} from "@d20dao/vrf-sdk/contracts/D20VRFConsumer.sol";
5
+ import {ID20VRF} from "@d20dao/vrf-sdk/contracts/interfaces/ID20VRF.sol";
6
+ import {D20VRFRequests} from "@d20dao/vrf-sdk/contracts/libraries/D20VRFRequests.sol";
7
+
8
+ /// @notice Minimal request/storage starter; no game payment, proof, mint or deployment policy.
9
+ contract DiceConsumer is D20VRFConsumer {
10
+ using D20VRFRequests for ID20VRF;
11
+ struct Roll { address player; bytes32 rawWord; bool ready; }
12
+ mapping(uint256 => Roll) public rolls;
13
+ mapping(uint256 => bool) public refunded;
14
+ error WrongFee();
15
+ error UnexpectedCallback();
16
+ error NotReady();
17
+
18
+ constructor(address coordinator) D20VRFConsumer(coordinator) {}
19
+
20
+ function roll(bytes32 clientSeed, uint32 callbackGasLimit) external payable returns (uint256 requestId) {
21
+ ID20VRF rng = ID20VRF(vrfCoordinator);
22
+ if (msg.value != rng.requestFee()) revert WrongFee();
23
+ requestId = rng.d20(D20VRFRequests.Options(clientSeed, callbackGasLimit, msg.sender));
24
+ rolls[requestId] = Roll(msg.sender, bytes32(0), false);
25
+ }
26
+
27
+ function _fulfillRandomness(uint256 requestId, bytes32 randomness) internal override {
28
+ Roll storage result = rolls[requestId];
29
+ if (result.player == address(0) || result.ready || refunded[requestId]) revert UnexpectedCallback();
30
+ result.rawWord = randomness;
31
+ result.ready = true;
32
+ }
33
+
34
+ // Requires a coordinator implementation supporting refund notifications.
35
+ function _onRefund(uint256 requestId) internal override {
36
+ Roll storage result = rolls[requestId];
37
+ if (result.player == address(0) || result.ready) revert UnexpectedCallback();
38
+ refunded[requestId] = true;
39
+ }
40
+
41
+ function result(uint256 requestId) external view returns (uint256) {
42
+ if (!rolls[requestId].ready) revert NotReady();
43
+ return ID20VRF(vrfCoordinator).getMappedResult(requestId)[0];
44
+ }
45
+ }
@@ -0,0 +1,193 @@
1
+ Copyright (c) 2018 SmartContract ChainLink Limited SEZC
2
+
3
+ Portions of this software are licensed as follows:
4
+
5
+ The MIT License (MIT)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.
24
+
25
+ ===============================================================================
26
+ `./pkg/bindings/abigen` is licensed as follows:
27
+
28
+ GNU LESSER GENERAL PUBLIC LICENSE
29
+ Version 3, 29 June 2007
30
+ Copyright © 2016–2025 The go-ethereum Authors
31
+
32
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
33
+ Everyone is permitted to copy and distribute verbatim copies
34
+ of this license document, but changing it is not allowed.
35
+
36
+
37
+ This version of the GNU Lesser General Public License incorporates
38
+ the terms and conditions of version 3 of the GNU General Public
39
+ License, supplemented by the additional permissions listed below.
40
+
41
+ 0. Additional Definitions.
42
+
43
+ As used herein, "this License" refers to version 3 of the GNU Lesser
44
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
45
+ General Public License.
46
+
47
+ "The Library" refers to a covered work governed by this License,
48
+ other than an Application or a Combined Work as defined below.
49
+
50
+ An "Application" is any work that makes use of an interface provided
51
+ by the Library, but which is not otherwise based on the Library.
52
+ Defining a subclass of a class defined by the Library is deemed a mode
53
+ of using an interface provided by the Library.
54
+
55
+ A "Combined Work" is a work produced by combining or linking an
56
+ Application with the Library. The particular version of the Library
57
+ with which the Combined Work was made is also called the "Linked
58
+ Version".
59
+
60
+ The "Minimal Corresponding Source" for a Combined Work means the
61
+ Corresponding Source for the Combined Work, excluding any source code
62
+ for portions of the Combined Work that, considered in isolation, are
63
+ based on the Application, and not on the Linked Version.
64
+
65
+ The "Corresponding Application Code" for a Combined Work means the
66
+ object code and/or source code for the Application, including any data
67
+ and utility programs needed for reproducing the Combined Work from the
68
+ Application, but excluding the System Libraries of the Combined Work.
69
+
70
+ 1. Exception to Section 3 of the GNU GPL.
71
+
72
+ You may convey a covered work under sections 3 and 4 of this License
73
+ without being bound by section 3 of the GNU GPL.
74
+
75
+ 2. Conveying Modified Versions.
76
+
77
+ If you modify a copy of the Library, and, in your modifications, a
78
+ facility refers to a function or data to be supplied by an Application
79
+ that uses the facility (other than as an argument passed when the
80
+ facility is invoked), then you may convey a copy of the modified
81
+ version:
82
+
83
+ a) under this License, provided that you make a good faith effort to
84
+ ensure that, in the event an Application does not supply the
85
+ function or data, the facility still operates, and performs
86
+ whatever part of its purpose remains meaningful, or
87
+
88
+ b) under the GNU GPL, with none of the additional permissions of
89
+ this License applicable to that copy.
90
+
91
+ 3. Object Code Incorporating Material from Library Header Files.
92
+
93
+ The object code form of an Application may incorporate material from
94
+ a header file that is part of the Library. You may convey such object
95
+ code under terms of your choice, provided that, if the incorporated
96
+ material is not limited to numerical parameters, data structure
97
+ layouts and accessors, or small macros, inline functions and templates
98
+ (ten or fewer lines in length), you do both of the following:
99
+
100
+ a) Give prominent notice with each copy of the object code that the
101
+ Library is used in it and that the Library and its use are
102
+ covered by this License.
103
+
104
+ b) Accompany the object code with a copy of the GNU GPL and this license
105
+ document.
106
+
107
+ 4. Combined Works.
108
+
109
+ You may convey a Combined Work under terms of your choice that,
110
+ taken together, effectively do not restrict modification of the
111
+ portions of the Library contained in the Combined Work and reverse
112
+ engineering for debugging such modifications, if you also do each of
113
+ the following:
114
+
115
+ a) Give prominent notice with each copy of the Combined Work that
116
+ the Library is used in it and that the Library and its use are
117
+ covered by this License.
118
+
119
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
120
+ document.
121
+
122
+ c) For a Combined Work that displays copyright notices during
123
+ execution, include the copyright notice for the Library among
124
+ these notices, as well as a reference directing the user to the
125
+ copies of the GNU GPL and this license document.
126
+
127
+ d) Do one of the following:
128
+
129
+ 0) Convey the Minimal Corresponding Source under the terms of this
130
+ License, and the Corresponding Application Code in a form
131
+ suitable for, and under terms that permit, the user to
132
+ recombine or relink the Application with a modified version of
133
+ the Linked Version to produce a modified Combined Work, in the
134
+ manner specified by section 6 of the GNU GPL for conveying
135
+ Corresponding Source.
136
+
137
+ 1) Use a suitable shared library mechanism for linking with the
138
+ Library. A suitable mechanism is one that (a) uses at run time
139
+ a copy of the Library already present on the user's computer
140
+ system, and (b) will operate properly with a modified version
141
+ of the Library that is interface-compatible with the Linked
142
+ Version.
143
+
144
+ e) Provide Installation Information, but only if you would otherwise
145
+ be required to provide such information under section 6 of the
146
+ GNU GPL, and only to the extent that such information is
147
+ necessary to install and execute a modified version of the
148
+ Combined Work produced by recombining or relinking the
149
+ Application with a modified version of the Linked Version. (If
150
+ you use option 4d0, the Installation Information must accompany
151
+ the Minimal Corresponding Source and Corresponding Application
152
+ Code. If you use option 4d1, you must provide the Installation
153
+ Information in the manner specified by section 6 of the GNU GPL
154
+ for conveying Corresponding Source.)
155
+
156
+ 5. Combined Libraries.
157
+
158
+ You may place library facilities that are a work based on the
159
+ Library side by side in a single library together with other library
160
+ facilities that are not Applications and are not covered by this
161
+ License, and convey such a combined library under terms of your
162
+ choice, if you do both of the following:
163
+
164
+ a) Accompany the combined library with a copy of the same work based
165
+ on the Library, uncombined with any other library facilities,
166
+ conveyed under the terms of this License.
167
+
168
+ b) Give prominent notice with the combined library that part of it
169
+ is a work based on the Library, and explaining where to find the
170
+ accompanying uncombined form of the same work.
171
+
172
+ 6. Revised Versions of the GNU Lesser General Public License.
173
+
174
+ The Free Software Foundation may publish revised and/or new versions
175
+ of the GNU Lesser General Public License from time to time. Such new
176
+ versions will be similar in spirit to the present version, but may
177
+ differ in detail to address new problems or concerns.
178
+
179
+ Each version is given a distinguishing version number. If the
180
+ Library as you received it specifies that a certain numbered version
181
+ of the GNU Lesser General Public License "or any later version"
182
+ applies to it, you have the option of following the terms and
183
+ conditions either of that published version or of any later version
184
+ published by the Free Software Foundation. If the Library as you
185
+ received it does not specify a version number of the GNU Lesser
186
+ General Public License, you may choose any version of the GNU Lesser
187
+ General Public License ever published by the Free Software Foundation.
188
+
189
+ If the Library as you received it specifies that a proxy can decide
190
+ whether future versions of the GNU Lesser General Public License shall
191
+ apply, that proxy's public statement of acceptance of any version is
192
+ permanent authorization for you to choose that version for the
193
+ Library.
@@ -0,0 +1,11 @@
1
+ # Vendored VRF verifier
2
+
3
+ - Upstream: https://github.com/smartcontractkit/chainlink-evm
4
+ - Commit: `b6cf3a6ff90c7172e1d6090d056c0f77282450ce`
5
+ - File: `contracts/src/v0.8/vrf/VRF.sol`
6
+ - Raw source: https://raw.githubusercontent.com/smartcontractkit/chainlink-evm/b6cf3a6ff90c7172e1d6090d056c0f77282450ce/contracts/src/v0.8/vrf/VRF.sol
7
+ - SHA-256: `98e0345fd2dd42178cad4ad16dd8b18621112078d63d0c64839c8bd01c539350`
8
+ - License: MIT as declared in the source. The upstream root license is preserved in `CHAINLINK-LICENSE` (including notices for upstream components not vendored here).
9
+ - Modifications: none. `npm run vendor:check` verifies the original bytes.
10
+
11
+ This is the Chainlink secp256k1/Keccak VRF construction described in that source, with its documented differences from the referenced IETF draft. It is not advertised as RFC 9381 wire-format interoperability. Reusing this file neither makes D20DAO a Chainlink service nor extends any upstream audit to our coordinator, mapping, consumer or keeper.
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@d20dao/vrf-sdk",
3
+ "version": "0.1.0",
4
+ "description": "D20DAO verifiable randomness: Solidity consumer helpers, contract ABIs and public proof replay",
5
+ "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
6
+ "type": "module",
7
+ "license": "MIT",
8
+ "engines": {
9
+ "node": ">=22.13.0"
10
+ },
11
+ "main": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js"
17
+ },
18
+ "./abi": {
19
+ "types": "./dist/abi.d.ts",
20
+ "import": "./dist/abi.js"
21
+ },
22
+ "./epoch": {
23
+ "types": "./dist/epoch.d.ts",
24
+ "import": "./dist/epoch.js"
25
+ },
26
+ "./abi/D20VRFCoordinator.json": "./abi/D20VRFCoordinator.json",
27
+ "./abi/EpochEntropy.json": "./abi/EpochEntropy.json",
28
+ "./contracts/*": "./contracts/*",
29
+ "./examples/*": "./examples/*",
30
+ "./AGENTS.md": "./AGENTS.md"
31
+ },
32
+ "files": [
33
+ "dist/*.js",
34
+ "dist/*.d.ts",
35
+ "contracts/**/*.sol",
36
+ "examples/*.sol",
37
+ "AGENTS.md",
38
+ "LICENSE",
39
+ "THIRD_PARTY_NOTICES.md",
40
+ "notices/*",
41
+ "BUILD-MANIFEST.json",
42
+ "PROTOCOL-PROVENANCE.json",
43
+ "abi/D20VRFCoordinator.json",
44
+ "abi/EpochEntropy.json"
45
+ ],
46
+ "scripts": {
47
+ "build": "node scripts/build.mjs",
48
+ "prepack": "npm run build",
49
+ "prepublishOnly": "npm test",
50
+ "test": "node scripts/smoke.mjs"
51
+ },
52
+ "dependencies": {
53
+ "@noble/curves": "1.9.7",
54
+ "ethers": "6.17.0"
55
+ },
56
+ "devDependencies": {
57
+ "@openzeppelin/contracts": "5.6.1",
58
+ "@types/node": "24.10.0",
59
+ "esbuild": "0.28.2",
60
+ "solc": "0.8.28",
61
+ "typescript": "5.9.3",
62
+ "@openzeppelin/contracts-upgradeable": "5.6.1"
63
+ },
64
+ "overrides": {
65
+ "solc": {
66
+ "tmp": "0.2.7"
67
+ }
68
+ },
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "https://github.com/d20dao/d20-sdk.git"
72
+ }
73
+ }