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 System.Security.Claims; | |
using System.Text.Encodings.Web; | |
using System.Text.Json; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.Extensions.Options; | |
using NNostr.Client; | |
public static class NostrAuth | |
{ | |
public const string Scheme = "Nostr"; |
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 bitcoin::consensus::Decodable; | |
use bitcoin::hashes::hex::FromHex; | |
use bitcoin::hashes::hex::ToHex; | |
use bitcoin::Transaction; | |
use bitcoin::util::psbt::serialize::Serialize; | |
fn main() { | |
let amount = 100_000_000u64; | |
println!(); |
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 std::str::FromStr; | |
use bitcoin::util::bip32::ExtendedPubKey; | |
use bitcoin::util::bip32::DerivationPath; | |
use bitcoin::secp256k1::Secp256k1; | |
use bitcoin::secp256k1::ffi::types::AlignedType; | |
use slip132::FromSlip132; | |
fn main() { | |
let network = bitcoin::Network::Bitcoin; |
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 System; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace npid | |
{ | |
[AttributeUsage(AttributeTargets.Struct)] |