Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
make account key extended
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthz committed Mar 14, 2019
1 parent 4a36f3e commit 3940bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chain-addr/src/lib.rs
Expand Up @@ -25,7 +25,7 @@
use bech32::{Bech32, FromBase32, ToBase32};
use std::string::ToString;

use chain_crypto::{Ed25519, Ed25519Extended, PublicKey, PublicKeyError};
use chain_crypto::{Ed25519Extended, PublicKey, PublicKeyError};

use chain_core::property::{self, Serialize as PropertySerialize};

Expand All @@ -52,7 +52,7 @@ pub enum Discrimination {
pub enum Kind {
Single(PublicKey<Ed25519Extended>),
Group(PublicKey<Ed25519Extended>, PublicKey<Ed25519Extended>),
Account(PublicKey<Ed25519>),
Account(PublicKey<Ed25519Extended>),
}

/// Kind Type of an address
Expand Down Expand Up @@ -418,7 +418,7 @@ pub mod testing {
use super::*;
use quickcheck::{Arbitrary, Gen};

fn arbitrary_public_key<G: Gen>(g: &mut G) -> PublicKey<Ed25519> {
fn arbitrary_public_key<G: Gen>(g: &mut G) -> PublicKey<Ed25519Extended> {
let mut bytes = [0; 32];
for byte in bytes.iter_mut() {
*byte = u8::arbitrary(g);
Expand Down

0 comments on commit 3940bc4

Please sign in to comment.