Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 042fe90

Browse files
committed
release 0.15.0 with sep-10
1 parent b68a0d4 commit 042fe90

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ As this project is pre 1.0, breaking changes may happen for minor version bumps.
44

55
## Next version
66

7+
## 0.15.0
8+
9+
- [SEP-10 Transaction-based Authentication](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md#preamble):
10+
Create and verify authentication challenges encoded into transactions. This feature allows two parties to perform
11+
account-based authentication via existing transaction schemes & standard SDK functionality.
12+
713
## 0.14.0
814

915
- [SEP-7 web+stellar:tx Transaction Signging Requests](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0007.md)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Add the JitPack & jcenter resolvers and the [latest dependency](https://jitpack.
1818
```scala
1919
resolvers += "jitpack" at "https://jitpack.io"
2020
resolvers += Resolver.jcenterRepo
21-
libraryDependencies += "com.github.synesso" %% "scala-stellar-sdk" % "0.14.0"
21+
libraryDependencies += "com.github.synesso" %% "scala-stellar-sdk" % "0.15.0"
2222
```
2323

2424
From there, it is a simple affair to create and fund a new account on the test network.

src/main/scala/stellar/sdk/auth/AuthChallenger.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@ import stellar.sdk.{KeyPair, Network}
99

1010
import scala.concurrent.duration._
1111

12+
/**
13+
* Factory for creating authentication challenges.
14+
* @param serverKey This must be the keypair associated with the SIGNING_KEY as defined in your service's stellar.toml
15+
*/
1216
class AuthChallenger(
1317
serverKey: KeyPair,
1418
clock: Clock = Clock.systemUTC()
1519
)(implicit network: Network) {
1620

21+
/**
22+
* Generates a Challenge for the given account.
23+
* @param accountId The stellar account that the wallet wishes to authenticate with the server
24+
* @param homeDomain The fully qualified domain name of the service requiring authentication.
25+
* @param timeout The period that during which valid responses to this challenge will be accepted.
26+
*/
1727
def challenge(
1828
accountId: AccountId,
1929
homeDomain: String,

0 commit comments

Comments
 (0)