This file contains 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
const customAgentVault = new HdIdentityVault({ | |
keyDerivationWorkFactor: 210_000, | |
store: new LevelStore<string, string>({ location: `DATA/AGENT/VAULT_STORE` }), | |
}); | |
await customAgentVault.unlock({ password }); | |
const didApi = new AgentDidApi({ | |
didMethods: [DidDht, DidJwk, DidStellar], | |
resolverCache: new AgentDidResolverCache({ location: `DATA/AGENT/DID_RESOLVERCACHE` }), |
This file contains 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
import { base64url } from '@scure/base'; | |
import { entropyToMnemonic } from '@scure/bip39'; | |
import { wordlist } from '@scure/bip39/wordlists/english'; | |
// Function to convert Base64URL string to Uint8Array | |
function base64UrlToUint8Array(b64url: string): Uint8Array { | |
return base64url.decode(b64url + '='.repeat((4 - (b64url.length % 4)) % 4)); | |
} | |
// Function to convert the private key to a BIP39 mnemonic |
This file contains 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
@use "@angular/material" as mat; | |
@use "sass:map"; | |
@include mat.core(); | |
$primary-palette: ( | |
50: #fef7df, | |
100: #fdeaae, | |
200: #fcdc7a, | |
300: #fbd041, |
This file contains 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
azure-pipeline.yml: | |
name: Build and Push ($(Date:yyyyMMdd)$(Rev:.r)) | |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' |
This file contains 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
using NBitcoin; | |
using Newtonsoft.Json; | |
using Xunit; | |
namespace BitcoinDojo | |
{ | |
public class Tests | |
{ | |
[Fact] | |
public void BasicIdentityAndEncryptionUsingBitcoin() |
This file contains 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
using NBitcoin; | |
using System; | |
namespace Example | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Merchant private key for their identity published on the Blockcore Hubs: |
This file contains 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/bash | |
# ------------------------------------------------------------------ | |
# City Chain Setup Script | |
# Download and deploy City Chain daemon as a service | |
# | |
# Author: thecrypt0hunter | |
# License: MIT | |
# ------------------------------------------------------------------ | |
NONE='\033[00m' |
This file contains 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
version: '2' | |
services: | |
nako: | |
container_name: city-nako | |
networks: | |
nakonet: | |
ipv4_address: 172.16.10.100 | |
image: coinvault/nako | |
command: city | |
ports: |
This file contains 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
version: '2' | |
services: | |
nako: | |
container_name: stratis-nako | |
networks: | |
nakonet: | |
ipv4_address: 172.16.11.100 | |
image: coinvault/nako | |
command: stratis | |
ports: |
This file contains 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
Verifying my Blockstack ID is secured with the address 1qYUwfvrfaxeqrsEgDResKQvsBBnSQVVF https://explorer.blockstack.org/address/1qYUwfvrfaxeqrsEgDResKQvsBBnSQVVF |
NewerOlder