diff --git a/.github/workflows/k256.yml b/.github/workflows/k256.yml index 31f60c02..d49d9ea3 100644 --- a/.github/workflows/k256.yml +++ b/.github/workflows/k256.yml @@ -102,33 +102,31 @@ jobs: - run: cargo test --release --target ${{ matrix.target }} --features field-montgomery - run: cargo test --release --target ${{ matrix.target }} --all-features - # Cross-compiled tests - # TODO(tarcieri): re-enable these after deps are no longer git-sourced -# cross: -# strategy: -# matrix: -# include: -# # ARM64 -# - target: aarch64-unknown-linux-gnu -# rust: 1.46.0 # MSRV -# - target: aarch64-unknown-linux-gnu -# rust: stable -# -# # PPC32 -# - target: aarch64-unknown-linux-gnu -# rust: 1.46.0 # MSRV -# - target: powerpc-unknown-linux-gnu -# rust: stable -# -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v1 -# - run: ${{ matrix.deps }} -# - uses: actions-rs/toolchain@v1 -# with: -# profile: minimal -# toolchain: ${{ matrix.rust }} -# target: ${{ matrix.target }} -# override: true -# - run: cargo install cross -# - run: cross test --release --target ${{ matrix.target }} --all-features + cross: + strategy: + matrix: + include: + # ARM64 + - target: aarch64-unknown-linux-gnu + rust: 1.46.0 # MSRV + - target: aarch64-unknown-linux-gnu + rust: stable + + # PPC32 + - target: aarch64-unknown-linux-gnu + rust: 1.46.0 # MSRV + - target: powerpc-unknown-linux-gnu + rust: stable + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: ${{ matrix.deps }} + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + - run: cargo install cross + - run: cross test --release --target ${{ matrix.target }} --all-features diff --git a/k256/src/lib.rs b/k256/src/lib.rs index c4f04210..a42c6b41 100644 --- a/k256/src/lib.rs +++ b/k256/src/lib.rs @@ -113,7 +113,7 @@ impl elliptic_curve::AlgorithmParameters for Secp256k1 { const OID: pkcs8::ObjectIdentifier = pkcs8::ObjectIdentifier::new(&[1, 3, 132, 0, 10]); } -/// Compressed SEC1-encoded secp256k1 (K-256) point (i.e. public key) +/// Compressed SEC1-encoded secp256k1 (K-256) point. pub type CompressedPoint = [u8; 33]; /// secp256k1 (K-256) field element serialized as bytes. @@ -133,7 +133,7 @@ pub type PublicKey = elliptic_curve::PublicKey; #[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))] pub type SecretKey = elliptic_curve::SecretKey; -/// Bytes containing a secp256k1 secret scalar +/// Bytes containing a secp256k1 secret scalar. #[cfg(feature = "zeroize")] #[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))] pub type SecretBytes = elliptic_curve::secret_key::SecretBytes;