Skip to content

Commit

Permalink
Fix/expose constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamol committed Mar 3, 2021
1 parent a632c1c commit e06b72d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/sapling-wasm"
],
"version": "0.0.5-beta.6"
"version": "0.0.5-beta.7"
}
2 changes: 1 addition & 1 deletion packages/sapling-android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "0.0.5-beta06"
versionName "0.0.5-beta07"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
Expand Down
35 changes: 19 additions & 16 deletions packages/sapling-ios/Sources/Sapling/Sapling.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import SaplingFFI

public struct Sapling {
public typealias Context = UnsafeMutableRawPointer

public typealias Seed = [UInt8]
public typealias ExtendedSpendingKey = [UInt8]
public typealias ExtendedFullViewingKey = [UInt8]
public typealias IncomingViewingKey = [UInt8]
public typealias OutgoingViewingKey = [UInt8]

public typealias Address = [UInt8]
public typealias Diversifier = [UInt8]
public typealias Index = [UInt8]

public typealias Rcm = [UInt8]
public typealias Esk = [UInt8]
public typealias Ar = [UInt8]
public typealias Anchor = [UInt8]
public typealias MerklePath = [UInt8]
public init() {}

/* Commitment */

Expand Down Expand Up @@ -301,6 +286,24 @@ public struct Sapling {

return key
}

public typealias Context = UnsafeMutableRawPointer

public typealias Seed = [UInt8]
public typealias ExtendedSpendingKey = [UInt8]
public typealias ExtendedFullViewingKey = [UInt8]
public typealias IncomingViewingKey = [UInt8]
public typealias OutgoingViewingKey = [UInt8]

public typealias Address = [UInt8]
public typealias Diversifier = [UInt8]
public typealias Index = [UInt8]

public typealias Rcm = [UInt8]
public typealias Esk = [UInt8]
public typealias Ar = [UInt8]
public typealias Anchor = [UInt8]
public typealias MerklePath = [UInt8]

public enum Error: Swift.Error {
case computeCommitmentFailed
Expand Down
2 changes: 1 addition & 1 deletion packages/sapling-wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sapling-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@airgap/sapling-wasm",
"author": "Papers.ch <[email protected]>",
"version": "0.0.5-beta.6",
"version": "0.0.5-beta.7",
"homepage": "https://www.airgap.it",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/sapling/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "airgap_sapling"
version = "0.0.5-beta.6"
version = "0.0.5-beta.7"
authors = ["Papers.ch <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function check_versions () {
load_versions

if compare_versions; then
echo "Versions match."
echo -e "\n Versions match."
return 0
else
echo -e "\n Versions mismatch."
Expand Down

0 comments on commit e06b72d

Please sign in to comment.