Skip to content

Commit 9ccc2ac

Browse files
committed
migrated from net.sf.m-m-m to io.github.m-m-m
1 parent edb3a9c commit 9ccc2ac

44 files changed

Lines changed: 192 additions & 188 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/pom.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@
1313
<description>API to access thank-tokens and calculate the value in thanks.</description>
1414
<dependencies>
1515
<dependency>
16-
<groupId>net.sf.m-m-m</groupId>
16+
<groupId>io.github.m-m-m</groupId>
1717
<artifactId>mmm-crypto-bc</artifactId>
18-
<version>1.0.0-beta4</version>
18+
<version>1.0.0-SNAPSHOT</version>
1919
</dependency>
2020
<dependency>
21-
<groupId>net.sf.m-m-m</groupId>
22-
<artifactId>mmm-util-value</artifactId>
23-
<version>8.6.0</version>
24-
</dependency>
25-
<dependency>
26-
<groupId>net.sf.m-m-m</groupId>
27-
<artifactId>mmm-util-pojo</artifactId>
28-
<version>8.6.0</version>
21+
<groupId>io.github.m-m-m</groupId>
22+
<artifactId>mmm-base</artifactId>
23+
<version>1.0.0-SNAPSHOT</version>
2924
</dependency>
3025
<dependency>
3126
<groupId>javax.json</groupId>

core/src/main/java/io/github/thanktoken/core/api/address/ThankAddress.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.github.thanktoken.core.api.address;
22

3-
import net.sf.mmm.crypto.CryptoBinary;
4-
3+
import io.github.mmm.crypto.CryptoBinary;
54
import io.github.thanktoken.core.api.algorithm.ThankAlgorithm;
65

76
/**

core/src/main/java/io/github/thanktoken/core/api/address/ThankAddressHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.github.thanktoken.core.api.address;
22

3-
import net.sf.mmm.binary.api.Binary;
3+
import io.github.mmm.binary.Binary;
44

55
/**
66
* The header of a {@link ThankAddress}. Contains the {@link #getType() type} of the identitiy and an optional

core/src/main/java/io/github/thanktoken/core/api/algorithm/ThankAlgorithm.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
import java.util.HashMap;
55
import java.util.Map;
66

7-
import net.sf.mmm.crypto.asymmetric.access.AsymmetricAccess;
8-
import net.sf.mmm.crypto.asymmetric.crypt.AsymmetricCryptorFactory;
9-
import net.sf.mmm.crypto.asymmetric.key.AsymmetricKeyCreator;
10-
import net.sf.mmm.crypto.asymmetric.sign.SignatureBinary;
11-
import net.sf.mmm.crypto.asymmetric.sign.SignatureProcessorFactory;
12-
import net.sf.mmm.crypto.hash.Hash;
13-
import net.sf.mmm.crypto.hash.HashCreator;
14-
import net.sf.mmm.crypto.hash.HashFactory;
15-
import net.sf.mmm.util.exception.api.DuplicateObjectException;
16-
import net.sf.mmm.util.exception.api.ObjectNotFoundException;
17-
7+
import io.github.mmm.base.exception.DuplicateObjectException;
8+
import io.github.mmm.base.exception.ObjectNotFoundException;
9+
import io.github.mmm.crypto.asymmetric.access.AsymmetricAccess;
10+
import io.github.mmm.crypto.asymmetric.crypt.AsymmetricCryptorFactory;
11+
import io.github.mmm.crypto.asymmetric.key.AsymmetricKeyCreator;
12+
import io.github.mmm.crypto.asymmetric.sign.SignatureBinary;
13+
import io.github.mmm.crypto.asymmetric.sign.SignatureProcessorFactory;
14+
import io.github.mmm.crypto.hash.Hash;
15+
import io.github.mmm.crypto.hash.HashCreator;
16+
import io.github.mmm.crypto.hash.HashFactory;
1817
import io.github.thanktoken.core.api.address.ThankAddress;
1918
import io.github.thanktoken.core.api.address.ThankAddressHeader;
2019
import io.github.thanktoken.core.api.datatype.StringType;

core/src/main/java/io/github/thanktoken/core/api/algorithm/ThankAlgorithmPkAddress.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import java.security.PublicKey;
44

5-
import net.sf.mmm.crypto.CryptoBinaryFormat;
6-
import net.sf.mmm.crypto.asymmetric.access.AsymmetricAccess;
7-
import net.sf.mmm.crypto.asymmetric.sign.SignatureBinary;
8-
import net.sf.mmm.crypto.hash.Hash;
9-
5+
import io.github.mmm.crypto.CryptoBinaryFormat;
6+
import io.github.mmm.crypto.asymmetric.access.AsymmetricAccess;
7+
import io.github.mmm.crypto.asymmetric.sign.SignatureBinary;
8+
import io.github.mmm.crypto.hash.Hash;
109
import io.github.thanktoken.core.api.address.ThankAddress;
1110
import io.github.thanktoken.core.api.address.ThankAddressHeader;
1211
import io.github.thanktoken.core.api.address.ThankAddressSimple;

core/src/main/java/io/github/thanktoken/core/api/algorithm/ThankAlgorithmPkSignature.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
import java.security.PublicKey;
44

5-
import net.sf.mmm.crypto.CryptoBinaryFormat;
6-
import net.sf.mmm.crypto.asymmetric.access.AsymmetricAccess;
7-
import net.sf.mmm.crypto.asymmetric.sign.SignatureBinary;
8-
import net.sf.mmm.crypto.asymmetric.sign.SignatureWithPublicKeyRecovery;
9-
import net.sf.mmm.crypto.hash.Hash;
10-
import net.sf.mmm.crypto.hash.HashCreator;
11-
5+
import io.github.mmm.crypto.CryptoBinaryFormat;
6+
import io.github.mmm.crypto.asymmetric.access.AsymmetricAccess;
7+
import io.github.mmm.crypto.asymmetric.sign.SignatureBinary;
8+
import io.github.mmm.crypto.asymmetric.sign.SignatureWithPublicKeyRecovery;
9+
import io.github.mmm.crypto.hash.Hash;
10+
import io.github.mmm.crypto.hash.HashCreator;
1211
import io.github.thanktoken.core.api.address.ThankAddress;
1312
import io.github.thanktoken.core.api.address.ThankAddressHeader;
1413
import io.github.thanktoken.core.api.address.ThankAddressSimple;

core/src/main/java/io/github/thanktoken/core/api/algorithm/ThankAlgorithmRsa4096.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.github.thanktoken.core.api.algorithm;
22

3-
import net.sf.mmm.crypto.asymmetric.access.rsa.Rsa;
4-
import net.sf.mmm.crypto.hash.sha2.Sha256;
3+
import io.github.mmm.crypto.asymmetric.access.rsa.Rsa;
4+
import io.github.mmm.crypto.hash.sha2.Sha256;
55

66
/**
77
* {@link ThankAlgorithm} based on {@link Rsa RSA}.

core/src/main/java/io/github/thanktoken/core/api/algorithm/ThankAlgorithmSecp256k1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.github.thanktoken.core.api.algorithm;
22

3-
import net.sf.mmm.crypto.asymmetric.access.ec.bc.Secp256k1;
4-
import net.sf.mmm.crypto.hash.sha2.Sha256;
3+
import io.github.mmm.crypto.asymmetric.access.ec.bc.Secp256k1;
4+
import io.github.mmm.crypto.hash.sha2.Sha256;
55

66
/**
77
* {@link ThankAlgorithm} based on {@link Secp256k1 Secp256k1}.

core/src/main/java/io/github/thanktoken/core/api/attribute/AttributeReadEncryptedPurpose.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
import java.util.Objects;
66

7-
import net.sf.mmm.crypto.crypt.EncryptedData;
8-
7+
import io.github.mmm.crypto.crypt.EncryptedData;
98
import io.github.thanktoken.core.api.data.ThankDataObject;
109

1110
/**

core/src/main/java/io/github/thanktoken/core/api/attribute/AttributeReadHash.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
* http://www.apache.org/licenses/LICENSE-2.0 */
33
package io.github.thanktoken.core.api.attribute;
44

5-
import net.sf.mmm.crypto.hash.Hash;
6-
5+
import io.github.mmm.crypto.hash.Hash;
76
import io.github.thanktoken.core.api.data.ThankDataObject;
87

98
/**
@@ -30,15 +29,15 @@ public interface AttributeReadHash extends ThankDataObject {
3029
* (see linked {@code createHashes} methods) and the {@link AttributeReadSignature#getSignature() signature}
3130
* being present. This hash is created by hashing the {@link #getHash2Sign() hash to sign} together with the
3231
* {@link AttributeReadSignature#getSignature() signature}. It is then
33-
* {@link net.sf.mmm.crypto.hash.HashCreator#update(net.sf.mmm.crypto.CryptoBinary) used} by the next
32+
* {@link io.github.mmm.crypto.hash.HashCreator#update(io.github.mmm.crypto.CryptoBinary) used} by the next
3433
* {@link ThankDataObject} ({@link io.github.thanktoken.core.api.transaction.ThankTransaction}) to calculate
3534
* the {@link #getHash2Sign() hash to sign}. This creates a chain that can not be manipulated without breaking
3635
* the hashes. The {@link AttributeReadSignature#getSignature() signature} is included in this hash to chain
3736
* because for multi-signatures multiple values can be valid and it is relevant who signed the transaction.
3837
* This is a transient property only used internally to cache intermediate hashes and save performance.
3938
* @see io.github.thanktoken.core.api.token.header.AbstractThankTokenHeader#createHashes()
4039
* @see io.github.thanktoken.core.api.transaction.AbstractThankTransaction#createHashes(io.github.thanktoken.core.api.token.ThankToken,
41-
* Hash)
40+
* io.github.thanktoken.core.api.transaction.Hash)
4241
*/
4342
Hash getHash2Chain();
4443

0 commit comments

Comments
 (0)