Skip to content

Commit eb73327

Browse files
Merge branch 'main' into release
2 parents 3dc0ce9 + 60c7e59 commit eb73327

File tree

28 files changed

+209
-27
lines changed

28 files changed

+209
-27
lines changed

.idea/runConfigurations/Release__Local_.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Release__Public_.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_Contract_Tests.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_Workflow_Tests.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ buildscript {
4040
}
4141
}
4242

43-
group 'io.onixlabs'
44-
version '2.1.2'
43+
group getProperty('group')
44+
version getProperty('version')
4545

4646
subprojects {
4747
repositories {
@@ -73,6 +73,11 @@ subprojects {
7373
}
7474
}
7575

76+
task sourceJar(type: Jar) {
77+
from sourceSets.main.allSource
78+
archiveClassifier = "sources"
79+
}
80+
7681
jar {
7782
exclude '**/log4j2*.xml'
7883
}

docs/CHANGELOG-2.1.2.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ In this version the property is declared using the `open` modifier, allowing der
5050

5151
---
5252

53-
###

docs/CHANGELOG-3.0.0.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
![ONIX Labs](https://raw.githubusercontent.com/onix-labs/onix-labs.github.io/master/content/logo/master_full_md.png)
2+
3+
# Change Log - Version 3.0.0
4+
5+
This document serves as the change log for the ONIXLabs Corda Core API.
6+
7+
## Release Notes
8+
9+
This release publishes source code along with the compiled dependencies, enabling developers debug into the ONIXLabs APIs and understand what's going on under the hood.
10+
11+
---
12+
13+
### sortAndReduce _Extension Function_
14+
15+
**Module:** onixlabs-corda-core-contract
16+
17+
**Package:** io.onixlabs.corda.core.contract
18+
19+
Sorts and reduces an `Iterable` of `SecureHash` into a single hash.
20+
21+
```kotlin
22+
fun Iterable<SecureHash>.sortAndReduce(): SecureHash
23+
```
24+
25+
---
26+
27+
### SignatureData *Class*
28+
29+
**Module:** onixlabs-corda-core-contract
30+
31+
**Package:** io.onixlabs.corda.core.contract
32+
33+
#### Description
34+
35+
Represents an array of unsigned bytes, and its signed equivalent.
36+
37+
```kotlin
38+
@CordaSerializable
39+
data class SignatureData(
40+
val content: ByteArray,
41+
val signature: DigitalSignature
42+
)
43+
```
44+
45+
> 🔵 **INFORMATION**
46+
>
47+
> This API exists in version 1.2.0 however in version 3.0.0 the `verify` function no longer returns `Boolean`. Instead, the `isValid` function replaces the `verify` function, and the `verify` function now returns `Unit`, or throws a `SignatureException` if the digital signature could not be verified by the specified public key.
48+
49+
---
50+
51+
###

gradle.properties

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name=onixlabs-corda-core
22
group=io.onixlabs
3-
version=2.1.2
4-
5-
kotlin.incremental=false
6-
kotlin.code.style=official
7-
3+
version=3.0.0
84
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
9-
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
5+
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3

onixlabs-corda-core-contract/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ publishing {
4949
groupId = project.parent.group
5050
version = project.parent.version
5151
artifactId = 'onixlabs-corda-core-contract'
52+
artifact sourceJar
5253
from components.java
5354
}
5455
}

onixlabs-corda-core-contract/src/main/kotlin/io/onixlabs/corda/core/contract/Extensions.AbstractParty.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ val Iterable<AbstractParty>.owningKeys: Set<PublicKey>
3434
* @return Returns a [SecureHash] representing the participants of the initial [Iterable].
3535
*/
3636
val Iterable<AbstractParty>.participantHash: SecureHash
37-
get() = SecureHash.sha256(map { SecureHash.sha256(it.toString()) }.toSortedSet().joinToString())
37+
get() = map { SecureHash.sha256(it.toString()) }.sortAndReduce()

0 commit comments

Comments
 (0)