pallas-addresses: pub fn new on StakeAddress

This commit is contained in:
Cobb 2026-05-04 12:33:19 -07:00
parent 57b36d3a7c
commit 51a0d0bd77

View file

@ -545,6 +545,11 @@ impl AsRef<[u8]> for StakePayload {
} }
impl StakeAddress { impl StakeAddress {
/// Construct a stake (reward) address from a network + payload.
pub fn new(network: Network, payload: StakePayload) -> Self {
Self(network, payload)
}
/// Gets the network assoaciated with this address /// Gets the network assoaciated with this address
pub fn network(&self) -> Network { pub fn network(&self) -> Network {
self.0 self.0