This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "hyperbee" { | |
| import type { Feed } from "hypercore" | |
| import type stream from "node:stream" | |
| interface HyperBeeOptions { | |
| keyEncoding: "utf-8" | "binary" | "ascii" | |
| valueEncoding: "utf-8" | "binary" | "ascii" | |
| } | |
| type Key = string | Uint8Array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "ipfs-only-hash" { | |
| export function of(input: string | Uint8Array | AsyncIterable<Uint8Array>, options?: {}): Promise<string> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "hyperbee" { | |
| import type { Feed } from "hypercore" | |
| import type stream from "node:stream" | |
| interface HyperBeeOptions { | |
| keyEncoding: "utf-8" | "binary" | "ascii" | |
| valueEncoding: "utf-8" | "binary" | "ascii" | |
| } | |
| type Key = string | Uint8Array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| zone_identifier="" | |
| record_name="" | |
| auth_token="" | |
| get_response=$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones/${zone_identifier}/dns_records?name=${record_name}&type=A" -H "Authorization: Bearer ${auth_token}" -H "Accept: application/json") | |
| get_success=$(echo ${get_response} | jq .success) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare namespace snarkjs { | |
| namespace groth16 { | |
| async function fullProve( | |
| input: Record<string, string>, | |
| wasmPath: string, | |
| zkeyPath: string | |
| ): Promise<{ publicSignals: string[]; proof: Object }> | |
| async function verify( | |
| verificationKey: any, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tasl = *( block newline ) block | |
| block = *WSP [ line-comment / statement *WSP ] | |
| statement = namespace-definition | |
| / literal-definition | |
| / class-declaration | |
| keyword-namespace = %x6E.61.6D.65.73.70.61.63.65 | |
| keyword-literal = %x6C.69.74.65.72.61.6C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "signed-varint" { | |
| function encode(input: number): number[] | |
| function decode(input: Uint8Array, offset?: number): number | |
| function encodingLength(input: number): number | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "rdf-canonize" { | |
| type Term = { | |
| termType: string | |
| value: string | |
| language?: string | |
| datatype?: Term | |
| } | |
| type Quad = { subject: Term; predicate: Term; object: Term; graph: Term } | |
| function canonize( | |
| dataset: Quad[], |
NewerOlder