How can I get stealthVersion from bitcoin's source code?

1

I found that a library called Bitcoinkit use stealthVersion.
Network.swift

public class Mainnet: Network {
...
    override var stealthVersion: UInt8 {
        return 0x2A
    }
...

I tried to search 0x2A,0x2a and 42(decimal from 0x2a) but find nothing in source code.

Is this calculated in bitcoin source code?

PS:
I found some Altcoin have a stealth.cpp which defined stealthversion:
(Verge)

const uint8_t stealth_version_byte = 0x28;

Coel Wu

Posted 2019-08-06T15:07:39.740

Reputation: 11

1I suspect this is for a feature called stealth addresses, which are not supported by Bitcoin Core, so naturally you wouldn't find it in its source code.Pieter Wuille 2019-08-06T15:27:25.833

1I thought it too. But why it is 0x2A instead of something else?Coel Wu 2019-08-06T15:29:14.413

1You'll have to ask the person who picked that value.Pieter Wuille 2019-08-06T15:29:40.587

1Yeah. I have just noticed that. The value is same as the bitcoin's version. Mainnet is 0x2a, Testnet is 0x2b. I couldn't find these too.Coel Wu 2019-08-06T16:17:44.957

No answers