Skip to content

Instantly share code, notes, and snippets.

View ilya-korotya's full-sized avatar

Ilya ilya-korotya

View GitHub Profile
@ilya-korotya
ilya-korotya / non-merklized-non-zero-balance.jsonld
Created February 8, 2024 22:50
non-merklized-non-zero-balance.jsonld
{
"@context": [
{
"@protected": true,
"@version": 1.1,
"id": "@id",
"type": "@type",
"Balance": {
"@context": {
"@propagate": true,
@ilya-korotya
ilya-korotya / balance.json
Created January 30, 2024 12:54
Balance JSON schema for refresh service. Balance field is nonNegativeInteger
{
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/ilya-korotya/314a60978556135485eca7e3275ec8cb/raw/8b6274eca26e18f656c877e63d13acd918421d4a/balance.jsonld"
},
"version": "1.0",
"type": "Balance"
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Schema for mumbai balance",
@ilya-korotya
ilya-korotya / balance.jsonld
Created January 30, 2024 12:46
Balance JSONLD schema for refresh service. Balance field is nonNegativeInteger
{
"@context": [
{
"@protected": true,
"@version": 1.1,
"id": "@id",
"type": "@type",
"Balance": {
"@context": {
"@propagate": true,
{
"inputs": {
"requestID": "1",
"userGenesisID": "22879310756363319032810766016738869250665251856303365183195317079868379650",
"profileNonce": "0",
"claimSubjectProfileNonce": "0",
"issuerID": "20140537885605785819118769494650292165307016100986347572517912906305442306",
"issuerClaim": ["14441233720865113967668398657987032886553", "22879310756363319032810766016738869250665251856303365183195317079868379650", "6110786403176308291878234173959103716240677907556284279283231644638912848526", "0", "31386095751855689281187532759", "0", "0", "0"],
"issuerClaimNonRevClaimsTreeRoot": "11297740471332948502699554699361975401642767767535876055414224905883468354533",
"issuerClaimNonRevRevTreeRoot": "0",
{
"id": "2qLyu6ScGiBz41e9j8tGPJVMoTzLvqtjhm1shpPxR1",
"profileNonce": "0",
"claimSubjectProfileNonce": "0",
"verifiableCredentials": {
"id": "urn:uuid:9ab2676c-905b-11ee-8227-0242ac1d0004",
"@context": ["https://www.w3.org/2018/credentials/v1", "https://schema.iden3.io/core/jsonld/iden3proofs.jsonld", "https://gist.githubusercontent.com/ilya-korotya/1549ee89a053bc42a98e53392dafc6f6/raw/64ba9d9bffd2806cc0ea6f5b4f22567e798c416d/balance.jsonld"],
"type": ["VerifiableCredential", "Balance"],
"expirationDate": "2023-12-01T15:14:20Z",
"issuanceDate": "2023-12-01T15:09:20.687067188Z",
@ilya-korotya
ilya-korotya / balance.json
Last active November 15, 2023 16:11
Non merklized balance json schema
{
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/ilya-korotya/ac20f870943abd4805fe882ae8f3dccd/raw/1d9969a6d0454280c8d5e79b959faf9b3978b497/balance.jsonld"
},
"version": "1.0",
"type": "Balance",
"iden3Serialization": {
"slotIndexA": "address",
"slotIndexB": "balance"
@ilya-korotya
ilya-korotya / balance.jsonld
Last active November 15, 2023 16:09
Non merklized balance jsonld document
{
"@context": [
{
"@protected": true,
"@version": 1.1,
"id": "@id",
"type": "@type",
"Balance": {
"@context": {
"@propagate": true,
@ilya-korotya
ilya-korotya / iden3proofs.jsonld
Created October 31, 2023 12:09
My local iden3poorfs
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"Iden3SparseMerkleTreeProof": {
"@id": "https://schema.iden3.io/core/jsonld/iden3proofs.jsonld#Iden3SparseMerkleTreeProof",
"@context": {
"@version": 1.1,
@ilya-korotya
ilya-korotya / w3c.jsonld
Created October 30, 2023 22:24
My local w3c org
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"VerifiableCredential": {
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential",
@ilya-korotya
ilya-korotya / balance.json
Created October 19, 2023 14:57
JSON balance schema for refresh service
{
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/ilya-korotya/1549ee89a053bc42a98e53392dafc6f6/raw/64ba9d9bffd2806cc0ea6f5b4f22567e798c416d/balance.jsonld"
},
"version": "1.0",
"type": "Balance"
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "MATIC balance",