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 |
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 strict"; | |
//----------------------------------------------------------------------------- | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License. See License file under the project root for license information. | |
//----------------------------------------------------------------------------- | |
var __extends = (this && this.__extends) || (function () { | |
var extendStatics = Object.setPrototypeOf || | |
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | |
return function (d, b) { |
NewerOlder