Server : LiteSpeed System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : apotdzgr ( 7060) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/currencies/ |
Upload File : |
<?php namespace mycryptocheckout\currencies; use BitWasp\Bitcoin\Network\Network; use BitWasp\Bitcoin\Script\ScriptType; class ViacoinNetwork extends Network { /** * @var array map of base58 address type to byte */ protected $base58PrefixMap = [ self::BASE58_ADDRESS_P2PKH => "47", self::BASE58_ADDRESS_P2SH => "21", self::BASE58_WIF => "c7", ]; /** * {@inheritdoc} * @see Network::$bech32PrefixMap */ protected $bech32PrefixMap = [ self::BECH32_PREFIX_SEGWIT => "via", ]; /** * @var array map of bip32 type to bytes */ protected $bip32PrefixMap = [ self::BIP32_PREFIX_XPUB => "0488b21e", self::BIP32_PREFIX_XPRV => "0488ade4", ]; /** * {@inheritdoc} * @see Network::$bip32ScriptTypeMap */ protected $bip32ScriptTypeMap = [ self::BIP32_PREFIX_XPUB => ScriptType::P2PKH, self::BIP32_PREFIX_XPRV => ScriptType::P2PKH, ]; /** * @var string - message prefix for bitcoin signed messages */ protected $signedMessagePrefix = "Viacoin Signed Message"; /** * @var string - 4 bytes for p2p magic */ protected $p2pMagic = "cbc6680f"; }