lisk-framework
Version:
Lisk blockchain application platform
34 lines • 949 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.HashOnionStore = exports.hashOnionSchema = void 0;
const base_offchain_store_1 = require("../../base_offchain_store");
exports.hashOnionSchema = {
$id: 'lisk/random/hashOnion',
type: 'object',
required: ['count', 'distance', 'hashes'],
properties: {
count: {
dataType: 'uint32',
fieldNumber: 1,
},
distance: {
dataType: 'uint32',
fieldNumber: 2,
},
hashes: {
type: 'array',
fieldNumber: 3,
items: {
dataType: 'bytes',
},
},
},
};
class HashOnionStore extends base_offchain_store_1.BaseOffchainStore {
constructor() {
super(...arguments);
this.schema = exports.hashOnionSchema;
}
}
exports.HashOnionStore = HashOnionStore;
//# sourceMappingURL=hash_onion.js.map
;