-
Notifications
You must be signed in to change notification settings - Fork 446
Expand file tree
/
Copy pathLitecoin.php
More file actions
57 lines (49 loc) · 1.23 KB
/
Litecoin.php
File metadata and controls
57 lines (49 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace BitWasp\Bitcoin\Network\Networks;
use BitWasp\Bitcoin\Network\Network;
use BitWasp\Bitcoin\Script\ScriptType;
class Litecoin extends Network
{
/**
* {@inheritdoc}
* @see Network::$base58PrefixMap
*/
protected $base58PrefixMap = [
self::BASE58_ADDRESS_P2PKH => "30",
self::BASE58_ADDRESS_P2SH => "32",
self::BASE58_WIF => "b0",
];
/**
* {@inheritdoc}
* @see Network::$bech32PrefixMap
*/
protected $bech32PrefixMap = [
self::BECH32_PREFIX_SEGWIT => "ltc",
];
/**
* {@inheritdoc}
* @see Network::$bip32PrefixMap
*/
protected $bip32PrefixMap = [
self::BIP32_PREFIX_XPUB => "019da462",
self::BIP32_PREFIX_XPRV => "019d9cfe",
];
/**
* {@inheritdoc}
* @see Network::$bip32ScriptTypeMap
*/
protected $bip32ScriptTypeMap = [
self::BIP32_PREFIX_XPUB => ScriptType::P2PKH,
self::BIP32_PREFIX_XPRV => ScriptType::P2PKH,
];
/**
* {@inheritdoc}
* @see Network::$signedMessagePrefix
*/
protected $signedMessagePrefix = "Litecoin Signed Message";
/**
* {@inheritdoc}
* @see Network::$p2pMagic
*/
protected $p2pMagic = "dbb6c0fb";
}