Definition
- decimals -> 6
- block explorer -> https://cardanoexplorer.com/
Address
- bip39 phrases -> public key address?
#!/bin/bash | |
plistbuddy=/usr/libexec/PlistBuddy | |
result="result.md" | |
rm -rf $result && touch $result | |
for ipa in *.ipa | |
do | |
info=$(unzip -l $ipa | grep -Eo 'Payload/[^/]+/Info.plist') | |
directory=$(dirname "$info") | |
app=$(basename "$directory") |
func testKusama() { | |
let key = PrivateKey(data: Data(hexString: "0x85fca134b3fe3fd523d8b528608d803890e26c93c86dc3d97b8d59c7b3540c97")!)! | |
let pubkey = key.getPublicKeyEd25519() | |
print("public key", pubkey.data.hexString) | |
let preimage = Data([0x2]) + pubkey.data | |
print("preimage", preimage.hexString) | |
let hash = Hash.blake2b(data: "SS58PRE".data(using: .utf8)! + preimage, size: 64) | |
print("blake2b hash", hash.hexString) | |
let decoded = Base58.decodeNoCheck(string: "HewiDTQv92L2bVtkziZC8ASxrFUxr6ajQ62RXAnwQ8FDVmg")! | |
let checksum = hash[0..<2] |
import Cocoa | |
import AVKit | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
@IBOutlet weak var window: NSWindow! | |
var videoWindow: NSWindow! | |
var playerLooper: AVPlayerLooper? |
Definition
Address
Pod::Spec.new do |s| | |
s.name = 'TrustWalletCore' | |
s.version = '2.6.7' | |
s.summary = 'Trust Wallet core data structures and algorithms.' | |
s.homepage = 'https://github.com/trustwallet/wallet-core' | |
s.license = 'MIT' | |
s.authors = { 'Alejandro Isaza' => '[email protected]' } | |
s.module_name = 'WalletCore' | |
s.ios.deployment_target = '12.0' | |
s.osx.deployment_target = '10.14' |
const bitcoinjs = require('bitcoinjs-lib') // @3.3.2 | |
const bchaddrjs = require('bchaddrjs') | |
const bip39 = require('bip39') | |
const clone = require('lodash.clonedeep') | |
const networks = bitcoinjs.networks | |
const script = bitcoinjs.script | |
/* | |
Bitcoin 0x0488b21e - xpub 0x0488ade4 - xprv P2PKH or P2SH |
const ethUtil = require('ethereumjs-util'); | |
const abi = require('ethereumjs-abi'); | |
const result = abi.rawEncode(['bytes32'], ['bBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB']) | |
console.log(ethUtil.bufferToHex(result)); | |
//0x6242624242424262624242426262624262624262626262424262426262626242 |
__d(function(e, r, n, t) { | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), t.provider = function(e) { | |
function r(e) { | |
i.__CIPHER_BRIDGE__ ? i.__CIPHER_BRIDGE__.postMessage(JSON.stringify(e)) : i.webkit.messageHandlers.reactNative.postMessage(JSON.stringify(e)) | |
} | |
function n() { | |
var e = crypto.getRandomValues(new Uint8Array(4)), |
import Foundation | |
import CryptoSwift | |
//https://github.com/ethereum/EIPs/blob/master/EIPS/eip-137.md | |
extension String { | |
public var namehash: String { | |
var node = Array<UInt8>.init(repeating: 0x0, count: 32) | |
if self.count > 0 { | |
node = self.split(separator: ".") | |
.map { Array($0.utf8).sha3(.keccak256) } |
I hereby claim:
To claim this, I am signing this object: