Table of Contents

Class KeyExtensions

Namespace
NArk.Abstractions.Extensions
Assembly
NArk.Abstractions.dll
public static class KeyExtensions
Inheritance
KeyExtensions
Inherited Members

Methods

ParseOutputDescriptor(string, Network)

public static OutputDescriptor ParseOutputDescriptor(string str, Network network)

Parameters

str string
network Network

Returns

OutputDescriptor

ToECXOnlyPubKey(byte[])

public static ECXOnlyPubKey ToECXOnlyPubKey(this byte[] pubKeyBytes)

Parameters

pubKeyBytes byte[]

Returns

ECXOnlyPubKey

ToOutputDescriptor(ECXOnlyPubKey, Network)

Builds a tr(<32-byte x-only>) output descriptor from an x-only public key (lowercase hex). Used to reconstruct a descriptor for a server signer the SDK stores x-only — e.g. a deprecated signer during recovery.

public static OutputDescriptor ToOutputDescriptor(this ECXOnlyPubKey pubKey, Network network)

Parameters

pubKey ECXOnlyPubKey
network Network

Returns

OutputDescriptor

ToPubKey(OutputDescriptor)

public static ECPubKey ToPubKey(this OutputDescriptor descriptor)

Parameters

descriptor OutputDescriptor

Returns

ECPubKey

ToXOnlyPubKey(OutputDescriptor)

public static ECXOnlyPubKey ToXOnlyPubKey(this OutputDescriptor descriptor)

Parameters

descriptor OutputDescriptor

Returns

ECXOnlyPubKey