SHA256
Подготовить проект к выкладыванию в Git
This commit is contained in:
+10
@@ -126,3 +126,13 @@ shine-UI/assets/navbar_preview.png
|
|||||||
**/.env.*
|
**/.env.*
|
||||||
!**/.env.example
|
!**/.env.example
|
||||||
!**/.env.sample
|
!**/.env.sample
|
||||||
|
|
||||||
|
# Private key files and local credential stores (never commit)
|
||||||
|
*.key
|
||||||
|
*.pem
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.jwk
|
||||||
|
*.jks
|
||||||
|
*.keystore
|
||||||
|
*keypair*.json
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "shine-browser-plugin-wallet",
|
"name": "shine-browser-plugin-wallet",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@noble/curves": "^1.5.0",
|
"@noble/curves": "^1.5.0",
|
||||||
"@solana/web3.js": "^1.98.4"
|
"@solana/web3.js": "^1.98.4"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "shine-browser-plugin-wallet",
|
"name": "shine-browser-plugin-wallet",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
"description": "Chrome-compatible Manifest V3 plugin for SHiNE wallet-session login.",
|
"description": "Chrome-compatible Manifest V3 plugin for SHiNE wallet-session login.",
|
||||||
"main": "popup.js",
|
"main": "popup.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -8,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@noble/curves": "^1.5.0",
|
"@noble/curves": "^1.5.0",
|
||||||
"@solana/web3.js": "^1.98.4"
|
"@solana/web3.js": "^1.98.4"
|
||||||
|
|||||||
@@ -1,82 +0,0 @@
|
|||||||
package shine.db.dao;
|
|
||||||
|
|
||||||
import shine.db.DbController;
|
|
||||||
import shine.db.entities.TestFreeAvatarUploadEntry;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
public final class TestFreeAvatarUploadsDAO {
|
|
||||||
|
|
||||||
private static volatile TestFreeAvatarUploadsDAO instance;
|
|
||||||
private final DbController db = DbController.getInstance();
|
|
||||||
|
|
||||||
private TestFreeAvatarUploadsDAO() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static TestFreeAvatarUploadsDAO getInstance() {
|
|
||||||
if (instance == null) {
|
|
||||||
synchronized (TestFreeAvatarUploadsDAO.class) {
|
|
||||||
if (instance == null) instance = new TestFreeAvatarUploadsDAO();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TestFreeAvatarUploadEntry getByLogin(Connection c, String login) throws SQLException {
|
|
||||||
String sql = """
|
|
||||||
SELECT login, used_count, updated_at_ms, last_tx_id
|
|
||||||
FROM test_free_avatar_uploads
|
|
||||||
WHERE LOWER(login) = LOWER(?)
|
|
||||||
LIMIT 1
|
|
||||||
""";
|
|
||||||
try (PreparedStatement ps = c.prepareStatement(sql)) {
|
|
||||||
ps.setString(1, login);
|
|
||||||
try (ResultSet rs = ps.executeQuery()) {
|
|
||||||
if (!rs.next()) return null;
|
|
||||||
return mapRow(rs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public TestFreeAvatarUploadEntry getByLogin(String login) throws SQLException {
|
|
||||||
try (Connection c = db.getConnection()) {
|
|
||||||
return getByLogin(c, login);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void upsertUsage(Connection c, String login, int usedCount, long updatedAtMs, String lastTxId) throws SQLException {
|
|
||||||
String sql = """
|
|
||||||
INSERT INTO test_free_avatar_uploads (login, used_count, updated_at_ms, last_tx_id)
|
|
||||||
VALUES (?, ?, ?, ?)
|
|
||||||
ON CONFLICT(login) DO UPDATE SET
|
|
||||||
used_count = excluded.used_count,
|
|
||||||
updated_at_ms = excluded.updated_at_ms,
|
|
||||||
last_tx_id = excluded.last_tx_id
|
|
||||||
""";
|
|
||||||
try (PreparedStatement ps = c.prepareStatement(sql)) {
|
|
||||||
ps.setString(1, login);
|
|
||||||
ps.setInt(2, usedCount);
|
|
||||||
ps.setLong(3, updatedAtMs);
|
|
||||||
ps.setString(4, lastTxId);
|
|
||||||
ps.executeUpdate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void upsertUsage(String login, int usedCount, long updatedAtMs, String lastTxId) throws SQLException {
|
|
||||||
try (Connection c = db.getConnection()) {
|
|
||||||
upsertUsage(c, login, usedCount, updatedAtMs, lastTxId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static TestFreeAvatarUploadEntry mapRow(ResultSet rs) throws SQLException {
|
|
||||||
return new TestFreeAvatarUploadEntry(
|
|
||||||
rs.getString("login"),
|
|
||||||
rs.getInt("used_count"),
|
|
||||||
rs.getLong("updated_at_ms"),
|
|
||||||
rs.getString("last_tx_id")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-50
@@ -1,50 +0,0 @@
|
|||||||
package shine.db.entities;
|
|
||||||
|
|
||||||
public class TestFreeAvatarUploadEntry {
|
|
||||||
private String login;
|
|
||||||
private int usedCount;
|
|
||||||
private long updatedAtMs;
|
|
||||||
private String lastTxId;
|
|
||||||
|
|
||||||
public TestFreeAvatarUploadEntry() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public TestFreeAvatarUploadEntry(String login, int usedCount, long updatedAtMs, String lastTxId) {
|
|
||||||
this.login = login;
|
|
||||||
this.usedCount = usedCount;
|
|
||||||
this.updatedAtMs = updatedAtMs;
|
|
||||||
this.lastTxId = lastTxId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLogin() {
|
|
||||||
return login;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLogin(String login) {
|
|
||||||
this.login = login;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUsedCount() {
|
|
||||||
return usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsedCount(int usedCount) {
|
|
||||||
this.usedCount = usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getUpdatedAtMs() {
|
|
||||||
return updatedAtMs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUpdatedAtMs(long updatedAtMs) {
|
|
||||||
this.updatedAtMs = updatedAtMs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLastTxId() {
|
|
||||||
return lastTxId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLastTxId(String lastTxId) {
|
|
||||||
this.lastTxId = lastTxId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.ConnectionContext;
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.JsonMessageHandler;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.tempToTest.entyties.Net_TestGetFreeAvatarQuota_Request;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.tempToTest.entyties.Net_TestGetFreeAvatarQuota_Response;
|
|
||||||
import server.logic.ws_protocol.JSON.utils.NetExceptionResponseFactory;
|
|
||||||
import server.logic.ws_protocol.WireCodes;
|
|
||||||
|
|
||||||
public class Net_TestGetFreeAvatarQuota_Handler implements JsonMessageHandler {
|
|
||||||
|
|
||||||
private final TestFreeAvatarArweaveService service = new TestFreeAvatarArweaveService();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Net_Response handle(Net_Request baseRequest, ConnectionContext ctx) throws Exception {
|
|
||||||
Net_TestGetFreeAvatarQuota_Request req = (Net_TestGetFreeAvatarQuota_Request) baseRequest;
|
|
||||||
if (ctx == null || !ctx.isAuthenticatedUser()) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.UNVERIFIED, "NOT_AUTHENTICATED", "Требуется авторизация");
|
|
||||||
}
|
|
||||||
|
|
||||||
String login = String.valueOf(ctx.getLogin() == null ? "" : ctx.getLogin()).trim();
|
|
||||||
TestFreeAvatarArweaveService.Quota quota = service.getQuota(login);
|
|
||||||
|
|
||||||
Net_TestGetFreeAvatarQuota_Response resp = new Net_TestGetFreeAvatarQuota_Response();
|
|
||||||
resp.setOp(req.getOp());
|
|
||||||
resp.setRequestId(req.getRequestId());
|
|
||||||
resp.setStatus(WireCodes.Status.OK);
|
|
||||||
resp.setEnabled(quota.enabled());
|
|
||||||
resp.setLimit(quota.limit());
|
|
||||||
resp.setUsedCount(quota.usedCount());
|
|
||||||
resp.setRemainingCount(quota.remainingCount());
|
|
||||||
resp.setMaxBytes(service.getMaxBytes());
|
|
||||||
return resp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-60
@@ -1,60 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.ConnectionContext;
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.JsonMessageHandler;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.tempToTest.entyties.Net_TestUploadFreeAvatar_Request;
|
|
||||||
import server.logic.ws_protocol.JSON.handlers.tempToTest.entyties.Net_TestUploadFreeAvatar_Response;
|
|
||||||
import server.logic.ws_protocol.JSON.utils.NetExceptionResponseFactory;
|
|
||||||
import server.logic.ws_protocol.WireCodes;
|
|
||||||
|
|
||||||
import java.util.Base64;
|
|
||||||
|
|
||||||
public class Net_TestUploadFreeAvatar_Handler implements JsonMessageHandler {
|
|
||||||
|
|
||||||
private final TestFreeAvatarArweaveService service = new TestFreeAvatarArweaveService();
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Net_Response handle(Net_Request baseRequest, ConnectionContext ctx) throws Exception {
|
|
||||||
Net_TestUploadFreeAvatar_Request req = (Net_TestUploadFreeAvatar_Request) baseRequest;
|
|
||||||
if (ctx == null || !ctx.isAuthenticatedUser()) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.UNVERIFIED, "NOT_AUTHENTICATED", "Требуется авторизация");
|
|
||||||
}
|
|
||||||
|
|
||||||
String fileBase64 = String.valueOf(req.getFileBytesBase64() == null ? "" : req.getFileBytesBase64()).trim();
|
|
||||||
String contentType = String.valueOf(req.getContentType() == null ? "" : req.getContentType()).trim();
|
|
||||||
if (fileBase64.isBlank() || contentType.isBlank()) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.BAD_REQUEST, "BAD_FIELDS", "Нужно передать contentType и fileBytesBase64.");
|
|
||||||
}
|
|
||||||
|
|
||||||
byte[] fileBytes;
|
|
||||||
try {
|
|
||||||
fileBytes = Base64.getDecoder().decode(fileBase64);
|
|
||||||
} catch (IllegalArgumentException e) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.BAD_REQUEST, "BAD_BASE64", "fileBytesBase64 должен быть корректным Base64.");
|
|
||||||
}
|
|
||||||
|
|
||||||
String login = String.valueOf(ctx.getLogin() == null ? "" : ctx.getLogin()).trim();
|
|
||||||
try {
|
|
||||||
TestFreeAvatarArweaveService.UploadResult result = service.uploadAvatar(login, contentType, fileBytes, req.getSha256Hex());
|
|
||||||
Net_TestUploadFreeAvatar_Response resp = new Net_TestUploadFreeAvatar_Response();
|
|
||||||
resp.setOp(req.getOp());
|
|
||||||
resp.setRequestId(req.getRequestId());
|
|
||||||
resp.setStatus(WireCodes.Status.OK);
|
|
||||||
resp.setTxId(result.txId());
|
|
||||||
resp.setSha256Hex(result.sha256Hex());
|
|
||||||
resp.setUsedCount(result.usedCount());
|
|
||||||
resp.setRemainingCount(result.remainingCount());
|
|
||||||
resp.setLimit(result.limit());
|
|
||||||
resp.setGateway(result.gateway());
|
|
||||||
return resp;
|
|
||||||
} catch (TestFreeAvatarArweaveService.FreeAvatarLimitExceededException e) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.BAD_REQUEST, "FREE_AVATAR_LIMIT_EXHAUSTED", e.getMessage());
|
|
||||||
} catch (IllegalArgumentException e) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.BAD_REQUEST, "BAD_AVATAR_FILE", e.getMessage());
|
|
||||||
} catch (IllegalStateException e) {
|
|
||||||
return NetExceptionResponseFactory.error(req, WireCodes.Status.SERVER_DATA_ERROR, "FREE_AVATAR_TEMP_DISABLED", e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-391
@@ -1,391 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import shine.db.dao.TestFreeAvatarUploadsDAO;
|
|
||||||
import shine.db.entities.TestFreeAvatarUploadEntry;
|
|
||||||
import utils.config.AppConfig;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.math.BigInteger;
|
|
||||||
import java.net.URI;
|
|
||||||
import java.net.http.HttpClient;
|
|
||||||
import java.net.http.HttpRequest;
|
|
||||||
import java.net.http.HttpResponse;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.security.GeneralSecurityException;
|
|
||||||
import java.security.KeyFactory;
|
|
||||||
import java.security.MessageDigest;
|
|
||||||
import java.security.PrivateKey;
|
|
||||||
import java.security.Signature;
|
|
||||||
import java.security.interfaces.RSAPrivateCrtKey;
|
|
||||||
import java.security.spec.MGF1ParameterSpec;
|
|
||||||
import java.security.spec.PSSParameterSpec;
|
|
||||||
import java.security.spec.RSAPrivateCrtKeySpec;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.time.Duration;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Base64;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
|
||||||
|
|
||||||
public final class TestFreeAvatarArweaveService {
|
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(TestFreeAvatarArweaveService.class);
|
|
||||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
|
||||||
private static final HttpClient HTTP = HttpClient.newBuilder()
|
|
||||||
.connectTimeout(Duration.ofSeconds(20))
|
|
||||||
.build();
|
|
||||||
private static final Base64.Decoder B64URL = Base64.getUrlDecoder();
|
|
||||||
private static final Base64.Encoder B64URL_NOPAD = Base64.getUrlEncoder().withoutPadding();
|
|
||||||
private static final int DEFAULT_LIMIT = 3;
|
|
||||||
private static final int DEFAULT_MAX_BYTES = 128 * 1024;
|
|
||||||
private static final String DEFAULT_GATEWAY = "https://arweave.net";
|
|
||||||
private static final ConcurrentHashMap<String, Object> LOGIN_LOCKS = new ConcurrentHashMap<>();
|
|
||||||
|
|
||||||
private final AppConfig config = AppConfig.getInstance();
|
|
||||||
private final TestFreeAvatarUploadsDAO quotaDao = TestFreeAvatarUploadsDAO.getInstance();
|
|
||||||
|
|
||||||
public Quota getQuota(String login) throws SQLException {
|
|
||||||
int limit = getLimitPerUser();
|
|
||||||
TestFreeAvatarUploadEntry entry = quotaDao.getByLogin(login);
|
|
||||||
int used = entry == null ? 0 : Math.max(0, entry.getUsedCount());
|
|
||||||
int remaining = Math.max(0, limit - used);
|
|
||||||
return new Quota(limit, used, remaining, isEnabled());
|
|
||||||
}
|
|
||||||
|
|
||||||
public UploadResult uploadAvatar(String login, String contentType, byte[] fileBytes, String expectedSha256Hex)
|
|
||||||
throws Exception {
|
|
||||||
if (!isEnabled()) {
|
|
||||||
throw new IllegalStateException("Временная бесплатная загрузка аватаров сейчас отключена на сервере.");
|
|
||||||
}
|
|
||||||
|
|
||||||
String cleanLogin = String.valueOf(login == null ? "" : login).trim();
|
|
||||||
if (cleanLogin.isBlank()) {
|
|
||||||
throw new IllegalArgumentException("Пустой login для бесплатной загрузки аватара.");
|
|
||||||
}
|
|
||||||
|
|
||||||
String cleanType = normalizeContentType(contentType);
|
|
||||||
validatePayload(cleanType, fileBytes);
|
|
||||||
String actualSha256Hex = sha256Hex(fileBytes);
|
|
||||||
String expectedSha = String.valueOf(expectedSha256Hex == null ? "" : expectedSha256Hex).trim().toLowerCase();
|
|
||||||
if (!expectedSha.isBlank() && !actualSha256Hex.equals(expectedSha)) {
|
|
||||||
throw new IllegalArgumentException("SHA-256 файла не совпадает с присланным клиентом.");
|
|
||||||
}
|
|
||||||
|
|
||||||
Object lock = LOGIN_LOCKS.computeIfAbsent(cleanLogin.toLowerCase(), key -> new Object());
|
|
||||||
synchronized (lock) {
|
|
||||||
Quota before = getQuota(cleanLogin);
|
|
||||||
if (before.remainingCount() <= 0) {
|
|
||||||
throw new FreeAvatarLimitExceededException("Вы исчерпали бесплатный лимит аватарок.");
|
|
||||||
}
|
|
||||||
|
|
||||||
ArweaveConfig arConfig = loadArweaveConfig();
|
|
||||||
String txId = postAvatarTransaction(arConfig, cleanLogin, cleanType, fileBytes);
|
|
||||||
|
|
||||||
int usedAfter = before.usedCount() + 1;
|
|
||||||
int remainingAfter = Math.max(0, before.limit() - usedAfter);
|
|
||||||
quotaDao.upsertUsage(cleanLogin, usedAfter, System.currentTimeMillis(), txId);
|
|
||||||
return new UploadResult(txId, actualSha256Hex, usedAfter, remainingAfter, before.limit(), arConfig.gateway());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isEnabled() {
|
|
||||||
return config.getBoolean("test.freeAvatar.enabled", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getLimitPerUser() {
|
|
||||||
int configured = config.getInt("test.freeAvatar.limitPerUser", DEFAULT_LIMIT);
|
|
||||||
return Math.max(1, configured);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMaxBytes() {
|
|
||||||
int configured = config.getInt("test.freeAvatar.maxBytes", DEFAULT_MAX_BYTES);
|
|
||||||
return Math.max(1024, configured);
|
|
||||||
}
|
|
||||||
|
|
||||||
private String postAvatarTransaction(ArweaveConfig arConfig, String login, String contentType, byte[] data)
|
|
||||||
throws IOException, InterruptedException, GeneralSecurityException {
|
|
||||||
String gateway = arConfig.gateway();
|
|
||||||
String anchor = getRequiredText(gateway, "/tx_anchor");
|
|
||||||
String reward = getRequiredText(gateway, "/price/" + data.length);
|
|
||||||
if (!reward.matches("^\\d+$")) {
|
|
||||||
throw new IllegalStateException("Arweave gateway вернул некорректную цену загрузки.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!arConfig.address().isBlank()) {
|
|
||||||
String balance = getRequiredText(gateway, "/wallet/" + arConfig.address() + "/balance");
|
|
||||||
if (balance.matches("^\\d+$")) {
|
|
||||||
BigInteger balanceWinston = new BigInteger(balance);
|
|
||||||
BigInteger rewardWinston = new BigInteger(reward);
|
|
||||||
if (balanceWinston.compareTo(rewardWinston) < 0) {
|
|
||||||
throw new IllegalStateException("На серверном Arweave-кошельке недостаточно AR для бесплатной загрузки аватара.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
byte[] dataRoot = singleChunkDataRoot(data);
|
|
||||||
List<List<byte[]>> tagList = new ArrayList<>();
|
|
||||||
List<Map<String, String>> jsonTags = new ArrayList<>();
|
|
||||||
appendTag(jsonTags, tagList, "Content-Type", contentType);
|
|
||||||
appendTag(jsonTags, tagList, "App-Name", "SHiNE");
|
|
||||||
appendTag(jsonTags, tagList, "SHiNE-Type", "avatar-free-test");
|
|
||||||
appendTag(jsonTags, tagList, "SHiNE-Profile-Login", login);
|
|
||||||
|
|
||||||
byte[] signaturePayload = deepHash(List.of(
|
|
||||||
utf8("2"),
|
|
||||||
b64UrlDecode(arConfig.owner()),
|
|
||||||
new byte[0],
|
|
||||||
utf8("0"),
|
|
||||||
utf8(reward),
|
|
||||||
b64UrlDecode(anchor),
|
|
||||||
tagList,
|
|
||||||
utf8(Integer.toString(data.length)),
|
|
||||||
dataRoot
|
|
||||||
));
|
|
||||||
|
|
||||||
byte[] rawSignature = signPayload(arConfig.privateKey(), signaturePayload);
|
|
||||||
String txId = b64UrlEncode(sha256(rawSignature));
|
|
||||||
|
|
||||||
Map<String, Object> body = new LinkedHashMap<>();
|
|
||||||
body.put("format", 2);
|
|
||||||
body.put("id", txId);
|
|
||||||
body.put("last_tx", anchor);
|
|
||||||
body.put("owner", arConfig.owner());
|
|
||||||
body.put("tags", jsonTags);
|
|
||||||
body.put("target", "");
|
|
||||||
body.put("quantity", "0");
|
|
||||||
body.put("data_root", b64UrlEncode(dataRoot));
|
|
||||||
body.put("data_size", Integer.toString(data.length));
|
|
||||||
body.put("data", b64UrlEncode(data));
|
|
||||||
body.put("reward", reward);
|
|
||||||
body.put("signature", b64UrlEncode(rawSignature));
|
|
||||||
|
|
||||||
String bodyJson = MAPPER.writeValueAsString(body);
|
|
||||||
HttpRequest req = HttpRequest.newBuilder(URI.create(gateway + "/tx"))
|
|
||||||
.timeout(Duration.ofSeconds(40))
|
|
||||||
.header("Content-Type", "application/json")
|
|
||||||
.header("Accept", "application/json")
|
|
||||||
.POST(HttpRequest.BodyPublishers.ofString(bodyJson, StandardCharsets.UTF_8))
|
|
||||||
.build();
|
|
||||||
HttpResponse<String> response = HTTP.send(req, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
|
|
||||||
int status = response.statusCode();
|
|
||||||
if (status != 200 && status != 208) {
|
|
||||||
throw new IllegalStateException("Arweave отклонил транзакцию: HTTP " + status + " " + safeBody(response.body()));
|
|
||||||
}
|
|
||||||
return txId;
|
|
||||||
}
|
|
||||||
|
|
||||||
private ArweaveConfig loadArweaveConfig() throws IOException, GeneralSecurityException {
|
|
||||||
String rawGateway = String.valueOf(config.getParam("test.freeAvatar.gateway") == null
|
|
||||||
? DEFAULT_GATEWAY
|
|
||||||
: config.getParam("test.freeAvatar.gateway")).trim();
|
|
||||||
String gateway = rawGateway.isBlank() ? DEFAULT_GATEWAY : rawGateway.replaceAll("/+$", "");
|
|
||||||
|
|
||||||
String walletPathRaw = String.valueOf(config.getParam("test.freeAvatar.walletJwkPath") == null
|
|
||||||
? ""
|
|
||||||
: config.getParam("test.freeAvatar.walletJwkPath")).trim();
|
|
||||||
if (walletPathRaw.isBlank()) {
|
|
||||||
throw new IllegalStateException("Не задан test.freeAvatar.walletJwkPath в настройках сервера.");
|
|
||||||
}
|
|
||||||
|
|
||||||
JsonNode jwk = MAPPER.readTree(Files.readString(Path.of(walletPathRaw), StandardCharsets.UTF_8));
|
|
||||||
String owner = requiredText(jwk, "n");
|
|
||||||
PrivateKey privateKey = buildPrivateKeyFromJwk(jwk);
|
|
||||||
String computedAddress = b64UrlEncode(sha256(b64UrlDecode(owner)));
|
|
||||||
|
|
||||||
String expectedAddress = String.valueOf(config.getParam("test.freeAvatar.walletAddress") == null
|
|
||||||
? ""
|
|
||||||
: config.getParam("test.freeAvatar.walletAddress")).trim();
|
|
||||||
if (!expectedAddress.isBlank() && !expectedAddress.equals(computedAddress)) {
|
|
||||||
throw new IllegalStateException("test.freeAvatar.walletAddress не совпадает с адресом из JWK.");
|
|
||||||
}
|
|
||||||
|
|
||||||
return new ArweaveConfig(gateway, owner, computedAddress, privateKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static PrivateKey buildPrivateKeyFromJwk(JsonNode jwk) throws GeneralSecurityException {
|
|
||||||
RSAPrivateCrtKeySpec spec = new RSAPrivateCrtKeySpec(
|
|
||||||
asBigInt(requiredText(jwk, "n")),
|
|
||||||
asBigInt(requiredText(jwk, "e")),
|
|
||||||
asBigInt(requiredText(jwk, "d")),
|
|
||||||
asBigInt(requiredText(jwk, "p")),
|
|
||||||
asBigInt(requiredText(jwk, "q")),
|
|
||||||
asBigInt(requiredText(jwk, "dp")),
|
|
||||||
asBigInt(requiredText(jwk, "dq")),
|
|
||||||
asBigInt(requiredText(jwk, "qi"))
|
|
||||||
);
|
|
||||||
return KeyFactory.getInstance("RSA").generatePrivate(spec);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] signPayload(PrivateKey key, byte[] payload) throws GeneralSecurityException {
|
|
||||||
Signature signature = Signature.getInstance("RSASSA-PSS");
|
|
||||||
signature.setParameter(new PSSParameterSpec("SHA-256", "MGF1", MGF1ParameterSpec.SHA256, 32, 1));
|
|
||||||
signature.initSign(key);
|
|
||||||
signature.update(payload);
|
|
||||||
return signature.sign();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] singleChunkDataRoot(byte[] data) throws GeneralSecurityException {
|
|
||||||
byte[] dataHash = sha256(data);
|
|
||||||
byte[] left = sha256(dataHash);
|
|
||||||
byte[] right = sha256(intToBuffer32(data.length));
|
|
||||||
return sha256(concat(left, right));
|
|
||||||
}
|
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
private static byte[] deepHash(Object data) throws GeneralSecurityException {
|
|
||||||
if (data instanceof List<?> list) {
|
|
||||||
byte[] tag = concat(utf8("list"), utf8(Integer.toString(list.size())));
|
|
||||||
return deepHashChunks(list, sha384(tag));
|
|
||||||
}
|
|
||||||
if (!(data instanceof byte[] bytes)) {
|
|
||||||
throw new IllegalArgumentException("deepHash поддерживает только byte[] и list.");
|
|
||||||
}
|
|
||||||
byte[] tag = concat(utf8("blob"), utf8(Integer.toString(bytes.length)));
|
|
||||||
byte[] tagged = concat(sha384(tag), sha384(bytes));
|
|
||||||
return sha384(tagged);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] deepHashChunks(List<?> chunks, byte[] acc) throws GeneralSecurityException {
|
|
||||||
if (chunks.isEmpty()) return acc;
|
|
||||||
byte[] pair = concat(acc, deepHash(chunks.get(0)));
|
|
||||||
return deepHashChunks(chunks.subList(1, chunks.size()), sha384(pair));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void appendTag(List<Map<String, String>> jsonTags, List<List<byte[]>> tagList, String name, String value) {
|
|
||||||
byte[] nameBytes = utf8(name);
|
|
||||||
byte[] valueBytes = utf8(value);
|
|
||||||
Map<String, String> item = new LinkedHashMap<>();
|
|
||||||
item.put("name", b64UrlEncode(nameBytes));
|
|
||||||
item.put("value", b64UrlEncode(valueBytes));
|
|
||||||
jsonTags.add(item);
|
|
||||||
tagList.add(List.of(nameBytes, valueBytes));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String getRequiredText(String gateway, String path) throws IOException, InterruptedException {
|
|
||||||
HttpRequest req = HttpRequest.newBuilder(URI.create(gateway + path))
|
|
||||||
.timeout(Duration.ofSeconds(20))
|
|
||||||
.GET()
|
|
||||||
.build();
|
|
||||||
HttpResponse<String> response = HTTP.send(req, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
|
|
||||||
if (response.statusCode() < 200 || response.statusCode() >= 300) {
|
|
||||||
throw new IllegalStateException("Arweave gateway вернул HTTP " + response.statusCode() + " для " + path);
|
|
||||||
}
|
|
||||||
String body = String.valueOf(response.body() == null ? "" : response.body()).trim();
|
|
||||||
if (body.isBlank()) {
|
|
||||||
throw new IllegalStateException("Arweave gateway вернул пустой ответ для " + path);
|
|
||||||
}
|
|
||||||
return body;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void validatePayload(String contentType, byte[] fileBytes) {
|
|
||||||
if (fileBytes == null || fileBytes.length == 0) {
|
|
||||||
throw new IllegalArgumentException("Файл аватара пустой.");
|
|
||||||
}
|
|
||||||
if (fileBytes.length > getMaxBytes()) {
|
|
||||||
throw new IllegalArgumentException("Файл слишком большой для бесплатной загрузки. Максимум " + getMaxBytes() + " байт.");
|
|
||||||
}
|
|
||||||
if (!isSupportedContentType(contentType)) {
|
|
||||||
throw new IllegalArgumentException("Поддерживаются только JPEG, PNG или WebP.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static boolean isSupportedContentType(String contentType) {
|
|
||||||
return "image/jpeg".equals(contentType)
|
|
||||||
|| "image/png".equals(contentType)
|
|
||||||
|| "image/webp".equals(contentType);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String normalizeContentType(String contentType) {
|
|
||||||
return String.valueOf(contentType == null ? "" : contentType).trim().toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String requiredText(JsonNode node, String field) {
|
|
||||||
String value = node == null ? "" : String.valueOf(node.path(field).asText("")).trim();
|
|
||||||
if (value.isBlank()) {
|
|
||||||
throw new IllegalStateException("В JWK отсутствует поле " + field + ".");
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static BigInteger asBigInt(String b64Url) {
|
|
||||||
return new BigInteger(1, b64UrlDecode(b64Url));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] b64UrlDecode(String value) {
|
|
||||||
return B64URL.decode(String.valueOf(value == null ? "" : value).trim());
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String b64UrlEncode(byte[] value) {
|
|
||||||
return B64URL_NOPAD.encodeToString(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] utf8(String value) {
|
|
||||||
return String.valueOf(value == null ? "" : value).getBytes(StandardCharsets.UTF_8);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] concat(byte[]... arrays) {
|
|
||||||
int total = 0;
|
|
||||||
for (byte[] array : arrays) total += array.length;
|
|
||||||
byte[] out = new byte[total];
|
|
||||||
int offset = 0;
|
|
||||||
for (byte[] array : arrays) {
|
|
||||||
System.arraycopy(array, 0, out, offset, array.length);
|
|
||||||
offset += array.length;
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] intToBuffer32(int value) {
|
|
||||||
byte[] out = new byte[32];
|
|
||||||
long current = Integer.toUnsignedLong(value);
|
|
||||||
for (int i = out.length - 1; i >= 0; i--) {
|
|
||||||
out[i] = (byte) (current & 0xffL);
|
|
||||||
current >>>= 8;
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] sha256(byte[] data) throws GeneralSecurityException {
|
|
||||||
return MessageDigest.getInstance("SHA-256").digest(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static byte[] sha384(byte[] data) throws GeneralSecurityException {
|
|
||||||
return MessageDigest.getInstance("SHA-384").digest(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String sha256Hex(byte[] data) throws GeneralSecurityException {
|
|
||||||
byte[] hash = sha256(data);
|
|
||||||
StringBuilder sb = new StringBuilder(hash.length * 2);
|
|
||||||
for (byte b : hash) sb.append(String.format("%02x", b));
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static String safeBody(String body) {
|
|
||||||
String text = String.valueOf(body == null ? "" : body).replace('\n', ' ').replace('\r', ' ').trim();
|
|
||||||
if (text.length() <= 220) return text;
|
|
||||||
return text.substring(0, 220) + "...";
|
|
||||||
}
|
|
||||||
|
|
||||||
public record Quota(int limit, int usedCount, int remainingCount, boolean enabled) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public record UploadResult(String txId, String sha256Hex, int usedCount, int remainingCount, int limit, String gateway) {
|
|
||||||
}
|
|
||||||
|
|
||||||
private record ArweaveConfig(String gateway, String owner, String address, PrivateKey privateKey) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final class FreeAvatarLimitExceededException extends RuntimeException {
|
|
||||||
public FreeAvatarLimitExceededException(String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-6
@@ -1,6 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest.entyties;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
|
||||||
|
|
||||||
public class Net_TestGetFreeAvatarQuota_Request extends Net_Request {
|
|
||||||
}
|
|
||||||
-51
@@ -1,51 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest.entyties;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
|
||||||
|
|
||||||
public class Net_TestGetFreeAvatarQuota_Response extends Net_Response {
|
|
||||||
private boolean enabled;
|
|
||||||
private int limit;
|
|
||||||
private int usedCount;
|
|
||||||
private int remainingCount;
|
|
||||||
private int maxBytes;
|
|
||||||
|
|
||||||
public boolean isEnabled() {
|
|
||||||
return enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEnabled(boolean enabled) {
|
|
||||||
this.enabled = enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getLimit() {
|
|
||||||
return limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLimit(int limit) {
|
|
||||||
this.limit = limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUsedCount() {
|
|
||||||
return usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsedCount(int usedCount) {
|
|
||||||
this.usedCount = usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getRemainingCount() {
|
|
||||||
return remainingCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRemainingCount(int remainingCount) {
|
|
||||||
this.remainingCount = remainingCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMaxBytes() {
|
|
||||||
return maxBytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMaxBytes(int maxBytes) {
|
|
||||||
this.maxBytes = maxBytes;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-33
@@ -1,33 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest.entyties;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Request;
|
|
||||||
|
|
||||||
public class Net_TestUploadFreeAvatar_Request extends Net_Request {
|
|
||||||
private String contentType;
|
|
||||||
private String fileBytesBase64;
|
|
||||||
private String sha256Hex;
|
|
||||||
|
|
||||||
public String getContentType() {
|
|
||||||
return contentType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setContentType(String contentType) {
|
|
||||||
this.contentType = contentType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFileBytesBase64() {
|
|
||||||
return fileBytesBase64;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFileBytesBase64(String fileBytesBase64) {
|
|
||||||
this.fileBytesBase64 = fileBytesBase64;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSha256Hex() {
|
|
||||||
return sha256Hex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSha256Hex(String sha256Hex) {
|
|
||||||
this.sha256Hex = sha256Hex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-60
@@ -1,60 +0,0 @@
|
|||||||
package server.logic.ws_protocol.JSON.handlers.tempToTest.entyties;
|
|
||||||
|
|
||||||
import server.logic.ws_protocol.JSON.entyties.Net_Response;
|
|
||||||
|
|
||||||
public class Net_TestUploadFreeAvatar_Response extends Net_Response {
|
|
||||||
private String txId;
|
|
||||||
private String sha256Hex;
|
|
||||||
private int usedCount;
|
|
||||||
private int remainingCount;
|
|
||||||
private int limit;
|
|
||||||
private String gateway;
|
|
||||||
|
|
||||||
public String getTxId() {
|
|
||||||
return txId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTxId(String txId) {
|
|
||||||
this.txId = txId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSha256Hex() {
|
|
||||||
return sha256Hex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSha256Hex(String sha256Hex) {
|
|
||||||
this.sha256Hex = sha256Hex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getUsedCount() {
|
|
||||||
return usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsedCount(int usedCount) {
|
|
||||||
this.usedCount = usedCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getRemainingCount() {
|
|
||||||
return remainingCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRemainingCount(int remainingCount) {
|
|
||||||
this.remainingCount = remainingCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getLimit() {
|
|
||||||
return limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLimit(int limit) {
|
|
||||||
this.limit = limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGateway() {
|
|
||||||
return gateway;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGateway(String gateway) {
|
|
||||||
this.gateway = gateway;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -84,3 +84,801 @@ The ESP32 prototype area includes Espressif audio codec helper files with SPDX/l
|
|||||||
|
|
||||||
- Files include `ESPRESSIF MIT License` and `SPDX-License-Identifier: Apache-2.0` notices.
|
- Files include `ESPRESSIF MIT License` and `SPDX-License-Identifier: Apache-2.0` notices.
|
||||||
- Original copyright notices are preserved in the source files.
|
- Original copyright notices are preserved in the source files.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Expanded inventory and verification notes (2026-11-05)
|
||||||
|
|
||||||
|
This section extends, rather than replaces, the original notices above. It is based on the source snapshot `SHiNE-bundle-2026.11.05-18.57.44.zip` and the dependency declarations and lockfiles inside it. External upstream license information was consulted for selected libraries; where exact release-level licensing was not available, the entry explicitly says so.
|
||||||
|
|
||||||
|
**Scope and limitations.** This is an attribution and license *inventory*, not a legal opinion or a certification of complete license compliance. Package-lock license fields are recorded metadata and are not a substitute for reviewing each installed package’s LICENSE/NOTICE files. Cargo.lock contains no license metadata. Java transitive dependencies, build tools, upstream bundled-code composition, and individual image provenance are not exhaustively resolved in the provided snapshot.
|
||||||
|
|
||||||
|
**Project licensing is separate.** `"license": "UNLICENSED"` and `"private": true` in SHiNE-owned npm manifests describe these two SHiNE packages; they do not revoke, replace, or override any third-party license. A public GitHub repository is not automatically licensed to others simply because it is public. Any later AGPL-3.0 adoption for SHiNE must preserve and comply with upstream third-party notices.
|
||||||
|
|
||||||
|
**Definitions:** "direct" = explicitly declared in a project manifest; "transitive" = installed as a dependency of another package; "vendored" = third-party library code stored as a file in the repository; "CDN" = loaded at runtime from an external network URL. *Source availability and redistribution requirements may differ for each.*
|
||||||
|
|
||||||
|
### Browser UI: bundled and remotely loaded libraries
|
||||||
|
|
||||||
|
| Component / files | Verified or reported license | Evidence and important notes |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Twemoji graphics, `twitter/twemoji@14.0.2` | CC BY 4.0 (graphics); MIT (code) | Runtime images loaded from jsDelivr. Keep prominent attribution to Twemoji; emoji content remains Unicode text. https://github.com/twitter/twemoji |
|
||||||
|
| QR Code Generator, `shine-UI/js/vendor-qrcode-generator.js` | MIT | Source copyright / MIT header identifies Kazuhiko Arase. http://www.d-project.com/ |
|
||||||
|
| Solana Web3, `shine-UI/js/vendor/solana-web3.iife.min.js` | MIT (top-level package) | Prebuilt third-party JavaScript with nested dependencies and embedded license material. Exact file version should be matched to its original build when re-vendoring. https://github.com/solana-foundation/solana-web3.js |
|
||||||
|
| Solana Web3 loader, `shine-UI/js/vendor/solana-web3-loader.js` | SHiNE integration / verify origin | Local loader for the third-party bundle; not itself a distinct upstream npm package in the snapshot. |
|
||||||
|
| Noble curves, `shine-UI/js/vendor/noble/curves-ed25519-1.5.0.bundle.mjs` | MIT | File header identifies `@noble/curves@1.5.0` via esm.sh. https://github.com/paulmillr/noble-curves |
|
||||||
|
| Noble curves, `shine-UI/js/vendor/noble/curves-ed25519-1.8.1.bundle.mjs` | MIT | File header identifies a different `@noble/curves` version (1.8.1). Verify bundle and subdependency notices as retained. |
|
||||||
|
| Noble hashes, `shine-UI/js/vendor/noble/hashes-argon2-1.8.0.bundle.mjs` | MIT | File header identifies `@noble/hashes@1.8.0`; preserves upstream acknowledgment obligation. https://github.com/paulmillr/noble-hashes |
|
||||||
|
| Turbo SDK, `shine-UI/js/vendor/turbo-sdk.web.bundle.js` | Apache-2.0 (Turbo SDK upstream) | Vendored browser bundle (~6.27 MB). Its exact Turbo SDK version is **not proven** by the archived filename; it embeds third-party code and some license banners. https://github.com/ardriveapp/turbo-sdk |
|
||||||
|
| Arweave JS, dynamically imported `arweave@1.15.7` via esm.sh | MIT | `shine-UI/js/services/arweave-file-service.js` and `arweave-wallet-service.js`; package metadata for this pinned release lists MIT. https://github.com/ArweaveTeam/arweave-js |
|
||||||
|
| Noble / Solana in wallet extension, `SHiNE-browser-plugin-wallet/js/lib/vendor/*.js` | MIT for the identified Noble and Solana packages | Generated vendor bundles include embedded code; audit the generation toolchain and preserve license notices on regeneration. |
|
||||||
|
|
||||||
|
#### Notable components inside the vendored Turbo bundle
|
||||||
|
|
||||||
|
The following names/license notices were found in the bundle’s **embedded license-information block** or recognizable upstream file comments. They are not presented as a complete software bill of materials for the minified bundle:
|
||||||
|
|
||||||
|
| Component visible in bundle | License or attribution visible in bundle |
|
||||||
|
| --- | --- |
|
||||||
|
| `js-sha3` (header names 0.8.0) | MIT; Chen, Yi-Cyuan |
|
||||||
|
| `@noble/hashes`, `@noble/curves`, `@noble/ed25519` | MIT; Paul Miller |
|
||||||
|
| `@scure/base` | MIT; Paul Miller |
|
||||||
|
| `aes-js` | MIT; Richard Moore |
|
||||||
|
| `safe-buffer` | MIT; Feross Aboukhadijeh |
|
||||||
|
| `ieee754` | BSD-3-Clause; Feross Aboukhadijeh |
|
||||||
|
| `@solana/buffer-layout` | MIT; Peter A. Bigot |
|
||||||
|
| `axios` (banner names v1.15.2) | Copyright notice for Matt Zabriskie and contributors; verify full license notice in the corresponding upstream package |
|
||||||
|
|
||||||
|
**Distribution check:** the Turbo bundle is a separately redistributed binary-like artifact (minified JavaScript). In addition to this summary, preserve every required copyright notice, NOTICE and applicable license text from the SDK release and its bundled dependencies. Merely listing "Apache-2.0" here is not necessarily sufficient.
|
||||||
|
|
||||||
|
### Solana and Metaplex JavaScript SDKs
|
||||||
|
|
||||||
|
The manifest `shine-solana/shine/package.json` directly declares the following third-party packages. Licenses and exact installed versions in this table are drawn **from that project’s `package-lock.json`**, except where explicitly annotated.
|
||||||
|
|
||||||
|
| Direct dependency | Locked version | License metadata |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `@coral-xyz/anchor` | `0.31.1` | `(MIT OR Apache-2.0)` |
|
||||||
|
| `@metaplex-foundation/mpl-token-metadata` | `3.4.0` | `Apache-2.0` |
|
||||||
|
| `@metaplex-foundation/mpl-toolbox` | `0.10.0` | `Apache-2.0` |
|
||||||
|
| `@metaplex-foundation/umi` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-bundle-defaults` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-web3js-adapters` | `1.5.1` | `MIT` |
|
||||||
|
| `@solana/spl-governance` | `0.3.28` | `MIT` |
|
||||||
|
| `@solana/spl-token` | `0.4.14` | `Apache-2.0` |
|
||||||
|
|
||||||
|
The extension project (`SHiNE-browser-plugin-wallet/package.json`) directly declares:
|
||||||
|
|
||||||
|
| Direct dependency | Locked version | License metadata |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `@noble/curves` | `1.5.0` | `MIT` |
|
||||||
|
| `@solana/web3.js` | `1.98.4` | `MIT` |
|
||||||
|
|
||||||
|
**Metaplex distinction:** the JavaScript/TypeScript client packages referenced here are not the same artifact as Metaplex’s on-chain Rust programs. For instance, the pinned `@metaplex-foundation/mpl-token-metadata@3.4.0` npm package records `Apache-2.0`; `@metaplex-foundation/umi@1.5.1` records MIT. Upstream Metaplex documentation distinguishes JS clients from programs with a separate Metaplex NFT license. Do not infer that SHiNE has incorporated the Rust Metaplex program simply because its JS client is a dependency. Source: https://github.com/metaplex-foundation/mpl-token-metadata .
|
||||||
|
|
||||||
|
**Anchor distinction:** `@coral-xyz/anchor@0.31.1` JavaScript package reports `(MIT OR Apache-2.0)` in the npm lock, while Rust `anchor-lang@0.31.1` has `Apache-2.0` in its published Cargo manifest. The two artifacts must not be assigned a single blanket license. Sources: https://app.unpkg.com/%40coral-xyz/anchor%400.31.1/files/package.json and https://docs.rs/crate/anchor-lang/0.31.1/source/Cargo.toml.orig .
|
||||||
|
|
||||||
|
**Transitive npm caveats:** the two lockfiles include `rpc-websockets` under `LGPL-3.0-only`, `pako@2.1.0` under `(MIT AND Zlib)`, `argparse@2.0.1` under `Python-2.0`, and `fastestsmallesttextencoderdecoder` under `CC0-1.0`. `AND` and `OR` in license expressions have distinct meanings and should be preserved exactly as shown. `rpc-websockets` appears in the wallet lock as v9.3.9 and in the Solana lock as v9.1.1.
|
||||||
|
|
||||||
|
**Missing npm metadata:** `eyes@0.1.8` and `text-encoding-utf-8@1.0.2` do not provide license values in either archived lockfile. The `text-encoding-utf-8` upstream repository includes a public-domain / Unlicense-style notice at https://github.com/arv/text-encoding-utf-8/blob/master/LICENSE.md ; however, verify that it applies to the exact npm tarball version before substituting a license expression into machine-generated inventory. The `eyes` license remains unresolved in this audit.
|
||||||
|
|
||||||
|
### Java server: explicitly declared dependencies
|
||||||
|
|
||||||
|
Gradle manifests directly declare these external Java dependencies. Versions differ between server modules; the strings below preserve the versions observed across the snapshot. The list does not include *all transitive* artifacts, or internal `project(...)` modules.
|
||||||
|
|
||||||
|
| Artifact | Declared versions | Known / reported license | Source |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `org.eclipse.jetty:jetty-server` | 11.0.20 | EPL-2.0 OR Apache-2.0 (verify exact artifact metadata) | https://www.eclipse.org/jetty/ |
|
||||||
|
| `org.eclipse.jetty:jetty-servlet` | 11.0.20 | EPL-2.0 OR Apache-2.0 (verify exact artifact metadata) | https://www.eclipse.org/jetty/ |
|
||||||
|
| `org.eclipse.jetty.websocket:websocket-jetty-server` | 11.0.20 | EPL-2.0 OR Apache-2.0 (verify exact artifact metadata) | https://www.eclipse.org/jetty/ |
|
||||||
|
| `org.bouncycastle:bcprov-jdk18on` | 1.78.1 | Bouncy Castle license (MIT-style; retain upstream text) | https://www.bouncycastle.org/about/license/ |
|
||||||
|
| `com.fasterxml.jackson.core:jackson-databind` | 2.17.0, 2.17.1, 2.17.2, 2.18.1 | Apache-2.0 | https://github.com/FasterXML/jackson-databind |
|
||||||
|
| `ch.qos.logback:logback-classic` | 1.5.6 | EPL-1.0 OR LGPL-2.1 (check distribution notices) | https://logback.qos.ch/license.html |
|
||||||
|
| `org.slf4j:slf4j-api` | 2.0.13, 2.0.16 | MIT | https://www.slf4j.org/license.html |
|
||||||
|
| `org.postgresql:postgresql` | 42.7.7 | BSD-2-Clause | https://jdbc.postgresql.org/ |
|
||||||
|
| `nl.martijndwars:web-push` | 5.1.1 | Apache-2.0 (upstream project, verify packaged artifact) | https://github.com/web-push-libs/webpush-java |
|
||||||
|
| `com.squareup.okhttp3:okhttp` | 4.12.0 | Apache-2.0 (verified POM) | https://central.sonatype.com/artifact/com.squareup.okhttp3/okhttp/4.12.0 |
|
||||||
|
| `org.junit.jupiter:junit-jupiter` | 5.11.0 + BOM-managed version | EPL-2.0 (test tooling; verify components) | https://junit.org/junit5/ |
|
||||||
|
| `org.junit:junit-bom` | 5.10.0, 5.10.2, 6.0.0 | EPL-2.0 (BOM; exact version depends on project) | https://junit.org/junit5/ |
|
||||||
|
| `org.junit.platform:junit-platform-suite-api` | BOM-managed | EPL-2.0 | https://junit.org/junit5/ |
|
||||||
|
| `org.junit.platform:junit-platform-suite-engine` | BOM-managed | EPL-2.0 | https://junit.org/junit5/ |
|
||||||
|
| `org.junit.platform:junit-platform-launcher` | BOM-managed | EPL-2.0 | https://junit.org/junit5/ |
|
||||||
|
|
||||||
|
Build system components in this source snapshot: Gradle 8.14 (main server wrapper), Gradle 9.3.0 (wallet wrapper configuration), and the `com.github.johnrengelman.shadow` Gradle plugin v8.1.1. Build tooling licenses and the licenses of transitive Gradle/Maven artifacts should be checked independently when distributing executable bundles or a prepackaged developer toolchain. Official Gradle license: Apache-2.0, https://github.com/gradle/gradle/blob/master/LICENSE .
|
||||||
|
|
||||||
|
### Rust smart-contract workspace
|
||||||
|
|
||||||
|
Workspace: `shine-solana/shine/Cargo.toml`; member programs: `shine_users`, `shine_payments`, `shine_login_guard`. Member programs are SHiNE-owned code; the dependencies below are third-party code.
|
||||||
|
|
||||||
|
| Explicit Rust dependency | Declared requirement | Where | License evidence |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `solana-program` | `2.1.21` in the program manifests; *resolved* `2.3.0` in Cargo.lock | All 3 programs | Apache-2.0 in upstream published `solana-program@2.3.0` Cargo.toml: https://docs.rs/crate/solana-program/2.3.0/source/Cargo.toml |
|
||||||
|
| `anchor-lang` | `=0.31.1` | `shine_payments` | Apache-2.0 for `anchor-lang@0.31.1` upstream manifest: https://docs.rs/crate/anchor-lang/0.31.1/source/Cargo.toml.orig |
|
||||||
|
| `anchor-lang` | `0.31.1`, optional | `shine_login_guard` | Same Apache-2.0 evidence; may be disabled by default, but present in lockfile |
|
||||||
|
| `pyth-solana-receiver-sdk` | `=0.6.0` | `shine_payments` | Pyth upstream repository and newer SDK versions report Apache-2.0. **Exact 0.6.0 package license not independently confirmed in this audit**: https://github.com/pyth-network/pyth-crosschain |
|
||||||
|
|
||||||
|
Cargo.lock contains **224 package entries**, including **221 registry-sourced entries** and **3 local workspace entries**. This is the locked dependency *inventory*, not an independently validated license inventory. Cargo.lock has no `license` field. For release-complete notices, collect and verify license metadata and copyright/NOTICE files of all crates from the exact locked versions (for example with `cargo metadata --locked`, `cargo license`/`cargo-about`, and the downloaded crates).
|
||||||
|
|
||||||
|
### Python test publisher utilities
|
||||||
|
|
||||||
|
Two requirements files are present under `tools/test-publisher/v1/` and `v2/`. The ranges below are **version constraints** (not proof of exactly installed versions). Python dependencies are development/test tooling unless those scripts are separately shipped or deployed.
|
||||||
|
|
||||||
|
| Python dependency | Version constraints in snapshot | Upstream-reported license |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `cryptography` | `>=42` (v1); `>=43,<47` (v2) | Apache-2.0 OR BSD-3-Clause; https://pypi.org/project/cryptography/ |
|
||||||
|
| `websockets` | `>=14` (v1); `>=14,<17` (v2) | BSD-3-Clause; https://pypi.org/project/websockets/ |
|
||||||
|
| `requests` | `>=2.32,<3` (v2) | Apache-2.0; https://pypi.org/project/requests/ |
|
||||||
|
| `arweave-python-client` | `>=1.0.18` (v2) | MIT (PyPI distribution metadata); https://pypi.org/project/arweave-python-client/ |
|
||||||
|
|
||||||
|
### ESP32 and embedded third-party code
|
||||||
|
|
||||||
|
The repository contains Arduino/ESP32 sketches, LVGL example code, generated fonts and source files from Espressif. Files explicitly carrying license headers include:
|
||||||
|
|
||||||
|
| Files / source area | Notice retained in source |
|
||||||
|
| --- | --- |
|
||||||
|
| `ESP32/esp32/ESP32-S3-Touch-AMOLED-2.16/main-device/simple_av_test/audio_hal.h` | `ESPRESSIF MIT License` header |
|
||||||
|
| `ESP32/esp32/ESP32-S3-Touch-AMOLED-2.16/main-device/simple_av_test/es7210.cpp`, `es7210.h` | `ESPRESSIF MIT License` header |
|
||||||
|
| `ESP32/esp32/ESP32-S3-Touch-AMOLED-2.16/main-device/simple_av_test/es8311.c`, `es8311.h`, `es8311_reg.h` | `SPDX-License-Identifier: Apache-2.0` header |
|
||||||
|
| `ESP32/.../test_sketches/lvgl_russian_font_test/lv_font_ru_18.c`, `lv_font_ru_24.c` | Generated-font provenance / original font rights **not established** by this snapshot |
|
||||||
|
| `ESP32/.../official-demo/examples/Arduino-v3.3.5/libraries/lv_conf.h` | Example configuration; upstream LVGL/board vendor notice needs checking before separate redistribution |
|
||||||
|
|
||||||
|
**Important:** the string `ESPRESSIF MIT License` in the audio helper headers refers to specific Espressif wording, which mentions Espressif products. Do not silently relabel such code as plain unmodified SPDX `MIT` without reviewing the full embedded header and its product-specific conditions. Keep original file-level copyright and license blocks intact.
|
||||||
|
|
||||||
|
### Project-owned assets and unverified provenance
|
||||||
|
|
||||||
|
The original "SHiNE project-owned visual assets" paragraph is a statement about project intent, not proof of chain of title for every asset. Paths `shine-UI/assets/` and `shine-UI/img/` contain logos, registration imagery, UI icons, and generated artwork. No external origin can be inferred reliably from filenames alone. Before external redistribution of any reused logo, stock image, icon pack, third-party font or AI-generated asset with restricted training/service terms, confirm the creator/source and rights separately. Ordinary original SHiNE-designed images need not be listed as third-party content.
|
||||||
|
|
||||||
|
### License-family summary observed in the npm lockfiles
|
||||||
|
|
||||||
|
**`SHiNE-browser-plugin-wallet/package-lock.json`** — 84 node_modules entries:
|
||||||
|
|
||||||
|
| Lockfile license metadata | Entries |
|
||||||
|
| --- | ---: |
|
||||||
|
| `MIT` | 72 |
|
||||||
|
| `Apache-2.0` | 3 |
|
||||||
|
| `BSD-3-Clause` | 3 |
|
||||||
|
| `NOT SPECIFIED IN LOCK` | 2 |
|
||||||
|
| `0BSD` | 1 |
|
||||||
|
| `BSD-2-Clause` | 1 |
|
||||||
|
| `ISC` | 1 |
|
||||||
|
| `LGPL-3.0-only` | 1 |
|
||||||
|
|
||||||
|
**`shine-solana/shine/package-lock.json`** — 250 node_modules entries:
|
||||||
|
|
||||||
|
| Lockfile license metadata | Entries |
|
||||||
|
| --- | ---: |
|
||||||
|
| `MIT` | 197 |
|
||||||
|
| `ISC` | 22 |
|
||||||
|
| `Apache-2.0` | 14 |
|
||||||
|
| `BSD-3-Clause` | 8 |
|
||||||
|
| `NOT SPECIFIED IN LOCK` | 2 |
|
||||||
|
| `(MIT AND Zlib)` | 1 |
|
||||||
|
| `(MIT OR Apache-2.0)` | 1 |
|
||||||
|
| `0BSD` | 1 |
|
||||||
|
| `BSD-2-Clause` | 1 |
|
||||||
|
| `CC0-1.0` | 1 |
|
||||||
|
| `LGPL-3.0-only` | 1 |
|
||||||
|
| `Python-2.0` | 1 |
|
||||||
|
|
||||||
|
### Publication / redistribution checklist
|
||||||
|
|
||||||
|
1. Keep this file alongside the project, but do not treat it as an unconditional grant of a license for SHiNE itself.
|
||||||
|
2. For source redistribution, retain copyright and LICENSE/NOTICE files shipped with third-party code; avoid stripping headers from vendored sources.
|
||||||
|
3. When distributing generated JARs, browser bundles, Solana binaries or firmware, inspect the **actual shipped artifact** and compile exact third-party licenses/NOTICE text for its contents. The source dependency list alone may be broader or narrower than the distributed product.
|
||||||
|
4. Before shipping the vendored Turbo bundle, identify its exact SDK version/build recipe and collect all embedded dependency notices, including from components not listed in the original project npm lockfiles.
|
||||||
|
5. Before a licensing-completeness claim, resolve `eyes@0.1.8`, verify the exact npm tarball notice for `text-encoding-utf-8@1.0.2`, check the `pyth-solana-receiver-sdk@0.6.0` crate manifest and validate all locked Rust crates.
|
||||||
|
6. Audit transitive Maven/Gradle components from a resolved dependency report (`./gradlew dependencies`) and preserve their license data and any NOTICE requirements.
|
||||||
|
7. Review the ESP32 board/Arduino/LVGL ecosystem and generated fonts for licenses not directly recorded in committed example files.
|
||||||
|
8. Re-run inventories after changes to `package-lock.json`, `Cargo.lock`, build.gradle, vendored JS, external CDN dependencies or imported assets; timestamps and locks here refer only to the 2026-11-05 snapshot.
|
||||||
|
|
||||||
|
## Appendix A — npm lockfile inventory (exact snapshot)
|
||||||
|
|
||||||
|
Each table below preserves the installed **package path** and exact version from the relevant `package-lock.json`. Nested `node_modules/...` paths can represent separate installed versions of the same package; these are not duplicate mistakes. A blank license in the source lockfile is shown as `NOT SPECIFIED` rather than guessed. This appendix is a snapshot of *all lockfile entries*, including devDependencies and optional dependencies, not evidence that every package is bundled into runtime code.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><strong>SHiNE-browser-plugin-wallet/package-lock.json</strong> — 84 packages (click to expand)</summary>
|
||||||
|
| Installed package path | Version | License recorded in lockfile |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `@babel/runtime` | `7.29.7` | `MIT` |
|
||||||
|
| `@esbuild/aix-ppc64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/android-arm` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/android-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/android-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/darwin-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/darwin-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/freebsd-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/freebsd-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-arm` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-ia32` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-loong64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-mips64el` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-ppc64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-riscv64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-s390x` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/linux-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/netbsd-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/netbsd-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/openbsd-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/openbsd-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/openharmony-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/sunos-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/win32-arm64` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/win32-ia32` | `0.28.1` | `MIT` |
|
||||||
|
| `@esbuild/win32-x64` | `0.28.1` | `MIT` |
|
||||||
|
| `@noble/curves` | `1.5.0` | `MIT` |
|
||||||
|
| `@noble/curves/node_modules/@noble/hashes` | `1.4.0` | `MIT` |
|
||||||
|
| `@noble/hashes` | `1.8.0` | `MIT` |
|
||||||
|
| `@solana/buffer-layout` | `4.0.1` | `MIT` |
|
||||||
|
| `@solana/codecs-core` | `2.3.0` | `MIT` |
|
||||||
|
| `@solana/codecs-numbers` | `2.3.0` | `MIT` |
|
||||||
|
| `@solana/errors` | `2.3.0` | `MIT` |
|
||||||
|
| `@solana/web3.js` | `1.98.4` | `MIT` |
|
||||||
|
| `@swc/helpers` | `0.5.23` | `Apache-2.0` |
|
||||||
|
| `@types/connect` | `3.4.38` | `MIT` |
|
||||||
|
| `@types/node` | `12.20.55` | `MIT` |
|
||||||
|
| `@types/uuid` | `10.0.0` | `MIT` |
|
||||||
|
| `@types/ws` | `7.4.7` | `MIT` |
|
||||||
|
| `agentkeepalive` | `4.6.0` | `MIT` |
|
||||||
|
| `base-x` | `3.0.11` | `MIT` |
|
||||||
|
| `base64-js` | `1.5.1` | `MIT` |
|
||||||
|
| `bn.js` | `5.2.3` | `MIT` |
|
||||||
|
| `borsh` | `0.7.0` | `Apache-2.0` |
|
||||||
|
| `bs58` | `4.0.1` | `MIT` |
|
||||||
|
| `buffer` | `6.0.3` | `MIT` |
|
||||||
|
| `bufferutil` | `4.1.0` | `MIT` |
|
||||||
|
| `chalk` | `5.6.2` | `MIT` |
|
||||||
|
| `commander` | `14.0.3` | `MIT` |
|
||||||
|
| `delay` | `5.0.0` | `MIT` |
|
||||||
|
| `es6-promise` | `4.2.8` | `MIT` |
|
||||||
|
| `es6-promisify` | `5.0.0` | `MIT` |
|
||||||
|
| `esbuild` | `0.28.1` | `MIT` |
|
||||||
|
| `eventemitter3` | `5.0.4` | `MIT` |
|
||||||
|
| `eyes` | `0.1.8` | `NOT SPECIFIED` |
|
||||||
|
| `fast-stable-stringify` | `1.0.0` | `MIT` |
|
||||||
|
| `humanize-ms` | `1.2.1` | `MIT` |
|
||||||
|
| `ieee754` | `1.2.1` | `BSD-3-Clause` |
|
||||||
|
| `isomorphic-ws` | `4.0.1` | `MIT` |
|
||||||
|
| `jayson` | `4.3.0` | `MIT` |
|
||||||
|
| `jayson/node_modules/commander` | `2.20.3` | `MIT` |
|
||||||
|
| `json-stringify-safe` | `5.0.1` | `ISC` |
|
||||||
|
| `ms` | `2.1.3` | `MIT` |
|
||||||
|
| `node-fetch` | `2.7.0` | `MIT` |
|
||||||
|
| `node-gyp-build` | `4.8.4` | `MIT` |
|
||||||
|
| `rpc-websockets` | `9.3.9` | `LGPL-3.0-only` |
|
||||||
|
| `rpc-websockets/node_modules/@types/ws` | `8.18.1` | `MIT` |
|
||||||
|
| `rpc-websockets/node_modules/utf-8-validate` | `6.0.6` | `MIT` |
|
||||||
|
| `rpc-websockets/node_modules/uuid` | `14.0.0` | `MIT` |
|
||||||
|
| `rpc-websockets/node_modules/ws` | `8.21.0` | `MIT` |
|
||||||
|
| `safe-buffer` | `5.2.1` | `MIT` |
|
||||||
|
| `stream-chain` | `2.2.5` | `BSD-3-Clause` |
|
||||||
|
| `stream-json` | `1.9.1` | `BSD-3-Clause` |
|
||||||
|
| `superstruct` | `2.0.2` | `MIT` |
|
||||||
|
| `text-encoding-utf-8` | `1.0.2` | `NOT SPECIFIED` |
|
||||||
|
| `tr46` | `0.0.3` | `MIT` |
|
||||||
|
| `tslib` | `2.8.1` | `0BSD` |
|
||||||
|
| `typescript` | `6.0.3` | `Apache-2.0` |
|
||||||
|
| `utf-8-validate` | `5.0.10` | `MIT` |
|
||||||
|
| `uuid` | `8.3.2` | `MIT` |
|
||||||
|
| `webidl-conversions` | `3.0.1` | `BSD-2-Clause` |
|
||||||
|
| `whatwg-url` | `5.0.0` | `MIT` |
|
||||||
|
| `ws` | `7.5.11` | `MIT` |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary><strong>shine-solana/shine/package-lock.json</strong> — 250 packages (click to expand)</summary>
|
||||||
|
| Installed package path | Version | License recorded in lockfile |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `@babel/runtime` | `7.27.1` | `MIT` |
|
||||||
|
| `@coral-xyz/anchor` | `0.31.1` | `(MIT OR Apache-2.0)` |
|
||||||
|
| `@coral-xyz/anchor-errors` | `0.31.1` | `Apache-2.0` |
|
||||||
|
| `@coral-xyz/borsh` | `0.31.1` | `Apache-2.0` |
|
||||||
|
| `@metaplex-foundation/mpl-token-metadata` | `3.4.0` | `Apache-2.0` |
|
||||||
|
| `@metaplex-foundation/mpl-toolbox` | `0.10.0` | `Apache-2.0` |
|
||||||
|
| `@metaplex-foundation/umi` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-bundle-defaults` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-downloader-http` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-eddsa-web3js` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-http-fetch` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-options` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-program-repository` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-public-keys` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-rpc-chunk-get-accounts` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-rpc-web3js` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-serializer-data-view` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-serializers` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-serializers-core` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-serializers-encodings` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-serializers-numbers` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-transaction-factory-web3js` | `1.5.1` | `MIT` |
|
||||||
|
| `@metaplex-foundation/umi-web3js-adapters` | `1.5.1` | `MIT` |
|
||||||
|
| `@noble/curves` | `1.9.1` | `MIT` |
|
||||||
|
| `@noble/hashes` | `1.8.0` | `MIT` |
|
||||||
|
| `@solana/buffer-layout` | `4.0.1` | `MIT` |
|
||||||
|
| `@solana/buffer-layout-utils` | `0.2.0` | `Apache-2.0` |
|
||||||
|
| `@solana/codecs` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-core` | `2.1.1` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures/node_modules/@solana/codecs-core` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures/node_modules/@solana/codecs-numbers` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures/node_modules/@solana/errors` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures/node_modules/chalk` | `5.6.2` | `MIT` |
|
||||||
|
| `@solana/codecs-data-structures/node_modules/commander` | `12.1.0` | `MIT` |
|
||||||
|
| `@solana/codecs-numbers` | `2.1.1` | `MIT` |
|
||||||
|
| `@solana/codecs-strings` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-strings/node_modules/@solana/codecs-core` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-strings/node_modules/@solana/codecs-numbers` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-strings/node_modules/@solana/errors` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs-strings/node_modules/chalk` | `5.6.2` | `MIT` |
|
||||||
|
| `@solana/codecs-strings/node_modules/commander` | `12.1.0` | `MIT` |
|
||||||
|
| `@solana/codecs/node_modules/@solana/codecs-core` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs/node_modules/@solana/codecs-numbers` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs/node_modules/@solana/errors` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/codecs/node_modules/chalk` | `5.6.2` | `MIT` |
|
||||||
|
| `@solana/codecs/node_modules/commander` | `12.1.0` | `MIT` |
|
||||||
|
| `@solana/errors` | `2.1.1` | `MIT` |
|
||||||
|
| `@solana/errors/node_modules/chalk` | `5.4.1` | `MIT` |
|
||||||
|
| `@solana/errors/node_modules/commander` | `13.1.0` | `MIT` |
|
||||||
|
| `@solana/options` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/options/node_modules/@solana/codecs-core` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/options/node_modules/@solana/codecs-numbers` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/options/node_modules/@solana/errors` | `2.0.0-rc.1` | `MIT` |
|
||||||
|
| `@solana/options/node_modules/chalk` | `5.6.2` | `MIT` |
|
||||||
|
| `@solana/options/node_modules/commander` | `12.1.0` | `MIT` |
|
||||||
|
| `@solana/spl-governance` | `0.3.28` | `MIT` |
|
||||||
|
| `@solana/spl-governance/node_modules/@types/bn.js` | `4.11.6` | `MIT` |
|
||||||
|
| `@solana/spl-governance/node_modules/borsh` | `0.3.1` | `Apache-2.0` |
|
||||||
|
| `@solana/spl-token` | `0.4.14` | `Apache-2.0` |
|
||||||
|
| `@solana/spl-token-group` | `0.0.7` | `Apache-2.0` |
|
||||||
|
| `@solana/spl-token-metadata` | `0.1.6` | `Apache-2.0` |
|
||||||
|
| `@solana/web3.js` | `1.98.2` | `MIT` |
|
||||||
|
| `@solana/web3.js/node_modules/superstruct` | `2.0.2` | `MIT` |
|
||||||
|
| `@swc/helpers` | `0.5.17` | `Apache-2.0` |
|
||||||
|
| `@types/bn.js` | `5.1.6` | `MIT` |
|
||||||
|
| `@types/chai` | `4.3.20` | `MIT` |
|
||||||
|
| `@types/connect` | `3.4.38` | `MIT` |
|
||||||
|
| `@types/json5` | `0.0.29` | `MIT` |
|
||||||
|
| `@types/mocha` | `9.1.1` | `MIT` |
|
||||||
|
| `@types/node` | `22.15.19` | `MIT` |
|
||||||
|
| `@types/uuid` | `8.3.4` | `MIT` |
|
||||||
|
| `@types/ws` | `7.4.7` | `MIT` |
|
||||||
|
| `@ungap/promise-all-settled` | `1.1.2` | `ISC` |
|
||||||
|
| `agentkeepalive` | `4.6.0` | `MIT` |
|
||||||
|
| `ansi-colors` | `4.1.1` | `MIT` |
|
||||||
|
| `ansi-regex` | `5.0.1` | `MIT` |
|
||||||
|
| `ansi-styles` | `4.3.0` | `MIT` |
|
||||||
|
| `anymatch` | `3.1.3` | `ISC` |
|
||||||
|
| `argparse` | `2.0.1` | `Python-2.0` |
|
||||||
|
| `arrify` | `1.0.1` | `MIT` |
|
||||||
|
| `assertion-error` | `1.1.0` | `MIT` |
|
||||||
|
| `asynckit` | `0.4.0` | `MIT` |
|
||||||
|
| `axios` | `1.16.0` | `MIT` |
|
||||||
|
| `balanced-match` | `1.0.2` | `MIT` |
|
||||||
|
| `base-x` | `3.0.11` | `MIT` |
|
||||||
|
| `base64-js` | `1.5.1` | `MIT` |
|
||||||
|
| `bigint-buffer` | `1.1.5` | `Apache-2.0` |
|
||||||
|
| `bignumber.js` | `9.3.1` | `MIT` |
|
||||||
|
| `binary-extensions` | `2.3.0` | `MIT` |
|
||||||
|
| `bindings` | `1.5.0` | `MIT` |
|
||||||
|
| `bn.js` | `5.2.2` | `MIT` |
|
||||||
|
| `borsh` | `0.7.0` | `Apache-2.0` |
|
||||||
|
| `brace-expansion` | `1.1.11` | `MIT` |
|
||||||
|
| `braces` | `3.0.3` | `MIT` |
|
||||||
|
| `browser-stdout` | `1.3.1` | `ISC` |
|
||||||
|
| `bs58` | `4.0.1` | `MIT` |
|
||||||
|
| `buffer` | `6.0.3` | `MIT` |
|
||||||
|
| `buffer-from` | `1.1.2` | `MIT` |
|
||||||
|
| `buffer-layout` | `1.2.2` | `MIT` |
|
||||||
|
| `bufferutil` | `4.0.9` | `MIT` |
|
||||||
|
| `call-bind-apply-helpers` | `1.0.2` | `MIT` |
|
||||||
|
| `camelcase` | `6.3.0` | `MIT` |
|
||||||
|
| `chai` | `4.5.0` | `MIT` |
|
||||||
|
| `chalk` | `4.1.2` | `MIT` |
|
||||||
|
| `chalk/node_modules/supports-color` | `7.2.0` | `MIT` |
|
||||||
|
| `check-error` | `1.0.3` | `MIT` |
|
||||||
|
| `chokidar` | `3.5.3` | `MIT` |
|
||||||
|
| `cliui` | `7.0.4` | `ISC` |
|
||||||
|
| `color-convert` | `2.0.1` | `MIT` |
|
||||||
|
| `color-name` | `1.1.4` | `MIT` |
|
||||||
|
| `combined-stream` | `1.0.8` | `MIT` |
|
||||||
|
| `commander` | `2.20.3` | `MIT` |
|
||||||
|
| `concat-map` | `0.0.1` | `MIT` |
|
||||||
|
| `cross-fetch` | `3.2.0` | `MIT` |
|
||||||
|
| `debug` | `4.3.3` | `MIT` |
|
||||||
|
| `debug/node_modules/ms` | `2.1.2` | `MIT` |
|
||||||
|
| `decamelize` | `4.0.0` | `MIT` |
|
||||||
|
| `deep-eql` | `4.1.4` | `MIT` |
|
||||||
|
| `delay` | `5.0.0` | `MIT` |
|
||||||
|
| `delayed-stream` | `1.0.0` | `MIT` |
|
||||||
|
| `diff` | `5.0.0` | `BSD-3-Clause` |
|
||||||
|
| `dunder-proto` | `1.0.1` | `MIT` |
|
||||||
|
| `emoji-regex` | `8.0.0` | `MIT` |
|
||||||
|
| `es-define-property` | `1.0.1` | `MIT` |
|
||||||
|
| `es-errors` | `1.3.0` | `MIT` |
|
||||||
|
| `es-object-atoms` | `1.1.1` | `MIT` |
|
||||||
|
| `es-set-tostringtag` | `2.1.0` | `MIT` |
|
||||||
|
| `es6-promise` | `4.2.8` | `MIT` |
|
||||||
|
| `es6-promisify` | `5.0.0` | `MIT` |
|
||||||
|
| `escalade` | `3.2.0` | `MIT` |
|
||||||
|
| `escape-string-regexp` | `4.0.0` | `MIT` |
|
||||||
|
| `eventemitter3` | `4.0.7` | `MIT` |
|
||||||
|
| `eyes` | `0.1.8` | `NOT SPECIFIED` |
|
||||||
|
| `fast-stable-stringify` | `1.0.0` | `MIT` |
|
||||||
|
| `fastestsmallesttextencoderdecoder` | `1.0.22` | `CC0-1.0` |
|
||||||
|
| `file-uri-to-path` | `1.0.0` | `MIT` |
|
||||||
|
| `fill-range` | `7.1.1` | `MIT` |
|
||||||
|
| `find-up` | `5.0.0` | `MIT` |
|
||||||
|
| `flat` | `5.0.2` | `BSD-3-Clause` |
|
||||||
|
| `follow-redirects` | `1.16.0` | `MIT` |
|
||||||
|
| `form-data` | `4.0.5` | `MIT` |
|
||||||
|
| `fs.realpath` | `1.0.0` | `ISC` |
|
||||||
|
| `function-bind` | `1.1.2` | `MIT` |
|
||||||
|
| `get-caller-file` | `2.0.5` | `ISC` |
|
||||||
|
| `get-func-name` | `2.0.2` | `MIT` |
|
||||||
|
| `get-intrinsic` | `1.3.0` | `MIT` |
|
||||||
|
| `get-proto` | `1.0.1` | `MIT` |
|
||||||
|
| `glob` | `7.2.0` | `ISC` |
|
||||||
|
| `glob-parent` | `5.1.2` | `ISC` |
|
||||||
|
| `glob/node_modules/minimatch` | `3.1.2` | `ISC` |
|
||||||
|
| `gopd` | `1.2.0` | `MIT` |
|
||||||
|
| `growl` | `1.10.5` | `MIT` |
|
||||||
|
| `has-flag` | `4.0.0` | `MIT` |
|
||||||
|
| `has-symbols` | `1.1.0` | `MIT` |
|
||||||
|
| `has-tostringtag` | `1.0.2` | `MIT` |
|
||||||
|
| `hasown` | `2.0.3` | `MIT` |
|
||||||
|
| `he` | `1.2.0` | `MIT` |
|
||||||
|
| `humanize-ms` | `1.2.1` | `MIT` |
|
||||||
|
| `ieee754` | `1.2.1` | `BSD-3-Clause` |
|
||||||
|
| `inflight` | `1.0.6` | `ISC` |
|
||||||
|
| `inherits` | `2.0.4` | `ISC` |
|
||||||
|
| `is-binary-path` | `2.1.0` | `MIT` |
|
||||||
|
| `is-extglob` | `2.1.1` | `MIT` |
|
||||||
|
| `is-fullwidth-code-point` | `3.0.0` | `MIT` |
|
||||||
|
| `is-glob` | `4.0.3` | `MIT` |
|
||||||
|
| `is-number` | `7.0.0` | `MIT` |
|
||||||
|
| `is-plain-obj` | `2.1.0` | `MIT` |
|
||||||
|
| `is-unicode-supported` | `0.1.0` | `MIT` |
|
||||||
|
| `isexe` | `2.0.0` | `ISC` |
|
||||||
|
| `isomorphic-ws` | `4.0.1` | `MIT` |
|
||||||
|
| `jayson` | `4.2.0` | `MIT` |
|
||||||
|
| `jayson/node_modules/@types/node` | `12.20.55` | `MIT` |
|
||||||
|
| `js-yaml` | `4.1.0` | `MIT` |
|
||||||
|
| `json-stringify-safe` | `5.0.1` | `ISC` |
|
||||||
|
| `json5` | `1.0.2` | `MIT` |
|
||||||
|
| `locate-path` | `6.0.0` | `MIT` |
|
||||||
|
| `log-symbols` | `4.1.0` | `MIT` |
|
||||||
|
| `loupe` | `2.3.7` | `MIT` |
|
||||||
|
| `make-error` | `1.3.6` | `ISC` |
|
||||||
|
| `math-intrinsics` | `1.1.0` | `MIT` |
|
||||||
|
| `mime-db` | `1.52.0` | `MIT` |
|
||||||
|
| `mime-types` | `2.1.35` | `MIT` |
|
||||||
|
| `minimatch` | `4.2.1` | `ISC` |
|
||||||
|
| `minimist` | `1.2.8` | `MIT` |
|
||||||
|
| `mkdirp` | `0.5.6` | `MIT` |
|
||||||
|
| `mocha` | `9.2.2` | `MIT` |
|
||||||
|
| `ms` | `2.1.3` | `MIT` |
|
||||||
|
| `nanoid` | `3.3.1` | `MIT` |
|
||||||
|
| `node-fetch` | `2.7.0` | `MIT` |
|
||||||
|
| `node-gyp-build` | `4.8.4` | `MIT` |
|
||||||
|
| `normalize-path` | `3.0.0` | `MIT` |
|
||||||
|
| `once` | `1.4.0` | `ISC` |
|
||||||
|
| `p-limit` | `3.1.0` | `MIT` |
|
||||||
|
| `p-locate` | `5.0.0` | `MIT` |
|
||||||
|
| `pako` | `2.1.0` | `(MIT AND Zlib)` |
|
||||||
|
| `path-exists` | `4.0.0` | `MIT` |
|
||||||
|
| `path-is-absolute` | `1.0.1` | `MIT` |
|
||||||
|
| `pathval` | `1.1.1` | `MIT` |
|
||||||
|
| `picomatch` | `2.3.1` | `MIT` |
|
||||||
|
| `prettier` | `2.8.8` | `MIT` |
|
||||||
|
| `proxy-from-env` | `2.1.0` | `MIT` |
|
||||||
|
| `randombytes` | `2.1.0` | `MIT` |
|
||||||
|
| `readdirp` | `3.6.0` | `MIT` |
|
||||||
|
| `require-directory` | `2.1.1` | `MIT` |
|
||||||
|
| `rpc-websockets` | `9.1.1` | `LGPL-3.0-only` |
|
||||||
|
| `rpc-websockets/node_modules/@types/ws` | `8.18.1` | `MIT` |
|
||||||
|
| `rpc-websockets/node_modules/eventemitter3` | `5.0.1` | `MIT` |
|
||||||
|
| `rpc-websockets/node_modules/ws` | `8.18.2` | `MIT` |
|
||||||
|
| `safe-buffer` | `5.2.1` | `MIT` |
|
||||||
|
| `serialize-javascript` | `6.0.0` | `BSD-3-Clause` |
|
||||||
|
| `source-map` | `0.6.1` | `BSD-3-Clause` |
|
||||||
|
| `source-map-support` | `0.5.21` | `MIT` |
|
||||||
|
| `stream-chain` | `2.2.5` | `BSD-3-Clause` |
|
||||||
|
| `stream-json` | `1.9.1` | `BSD-3-Clause` |
|
||||||
|
| `string-width` | `4.2.3` | `MIT` |
|
||||||
|
| `strip-ansi` | `6.0.1` | `MIT` |
|
||||||
|
| `strip-bom` | `3.0.0` | `MIT` |
|
||||||
|
| `strip-json-comments` | `3.1.1` | `MIT` |
|
||||||
|
| `superstruct` | `0.15.5` | `MIT` |
|
||||||
|
| `supports-color` | `8.1.1` | `MIT` |
|
||||||
|
| `text-encoding-utf-8` | `1.0.2` | `NOT SPECIFIED` |
|
||||||
|
| `to-regex-range` | `5.0.1` | `MIT` |
|
||||||
|
| `toml` | `3.0.0` | `MIT` |
|
||||||
|
| `tr46` | `0.0.3` | `MIT` |
|
||||||
|
| `ts-mocha` | `10.1.0` | `MIT` |
|
||||||
|
| `ts-node` | `7.0.1` | `MIT` |
|
||||||
|
| `ts-node/node_modules/diff` | `3.5.0` | `BSD-3-Clause` |
|
||||||
|
| `tsconfig-paths` | `3.15.0` | `MIT` |
|
||||||
|
| `tslib` | `2.8.1` | `0BSD` |
|
||||||
|
| `type-detect` | `4.1.0` | `MIT` |
|
||||||
|
| `typescript` | `5.8.3` | `Apache-2.0` |
|
||||||
|
| `undici-types` | `6.21.0` | `MIT` |
|
||||||
|
| `utf-8-validate` | `5.0.10` | `MIT` |
|
||||||
|
| `uuid` | `8.3.2` | `MIT` |
|
||||||
|
| `webidl-conversions` | `3.0.1` | `BSD-2-Clause` |
|
||||||
|
| `whatwg-url` | `5.0.0` | `MIT` |
|
||||||
|
| `which` | `2.0.2` | `ISC` |
|
||||||
|
| `workerpool` | `6.2.0` | `Apache-2.0` |
|
||||||
|
| `wrap-ansi` | `7.0.0` | `MIT` |
|
||||||
|
| `wrappy` | `1.0.2` | `ISC` |
|
||||||
|
| `ws` | `7.5.10` | `MIT` |
|
||||||
|
| `y18n` | `5.0.8` | `ISC` |
|
||||||
|
| `yaml` | `2.8.4` | `ISC` |
|
||||||
|
| `yargs` | `16.2.0` | `MIT` |
|
||||||
|
| `yargs-parser` | `20.2.4` | `ISC` |
|
||||||
|
| `yargs-unparser` | `2.0.0` | `MIT` |
|
||||||
|
| `yargs/node_modules/yargs-parser` | `20.2.9` | `ISC` |
|
||||||
|
| `yn` | `2.0.0` | `MIT` |
|
||||||
|
| `yocto-queue` | `0.1.0` | `MIT` |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
## Appendix B — Rust Cargo.lock inventory (exact snapshot)
|
||||||
|
|
||||||
|
**The following is not a Rust license table.** It is an exhaustive list of crates and versions read from the archived lockfile. The lockfile does not store each crate’s license, so no license has been invented for unverified crates. License findings for selected direct crates are documented in the main Rust section above.
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><strong>Registry crates</strong> — 221 exact locked package versions (click to expand)</summary>
|
||||||
|
| Crate | Version |
|
||||||
|
| --- | --- |
|
||||||
|
| `ahash` | `0.8.12` |
|
||||||
|
| `aho-corasick` | `1.1.4` |
|
||||||
|
| `anchor-attribute-access-control` | `0.31.1` |
|
||||||
|
| `anchor-attribute-account` | `0.31.1` |
|
||||||
|
| `anchor-attribute-constant` | `0.31.1` |
|
||||||
|
| `anchor-attribute-error` | `0.31.1` |
|
||||||
|
| `anchor-attribute-event` | `0.31.1` |
|
||||||
|
| `anchor-attribute-program` | `0.31.1` |
|
||||||
|
| `anchor-derive-accounts` | `0.31.1` |
|
||||||
|
| `anchor-derive-serde` | `0.31.1` |
|
||||||
|
| `anchor-derive-space` | `0.31.1` |
|
||||||
|
| `anchor-lang` | `0.31.1` |
|
||||||
|
| `anchor-lang-idl` | `0.1.2` |
|
||||||
|
| `anchor-lang-idl-spec` | `0.1.0` |
|
||||||
|
| `anchor-syn` | `0.31.1` |
|
||||||
|
| `anyhow` | `1.0.102` |
|
||||||
|
| `arrayref` | `0.3.9` |
|
||||||
|
| `arrayvec` | `0.7.6` |
|
||||||
|
| `autocfg` | `1.4.0` |
|
||||||
|
| `base64` | `0.12.3` |
|
||||||
|
| `base64` | `0.21.7` |
|
||||||
|
| `base64` | `0.22.1` |
|
||||||
|
| `bincode` | `1.3.3` |
|
||||||
|
| `bitflags` | `2.9.1` |
|
||||||
|
| `blake3` | `1.8.2` |
|
||||||
|
| `block-buffer` | `0.10.4` |
|
||||||
|
| `block-buffer` | `0.9.0` |
|
||||||
|
| `borsh` | `0.10.4` |
|
||||||
|
| `borsh` | `1.5.7` |
|
||||||
|
| `borsh-derive` | `0.10.4` |
|
||||||
|
| `borsh-derive` | `1.5.7` |
|
||||||
|
| `borsh-derive-internal` | `0.10.4` |
|
||||||
|
| `borsh-schema-derive-internal` | `0.10.4` |
|
||||||
|
| `bs58` | `0.5.1` |
|
||||||
|
| `bumpalo` | `3.17.0` |
|
||||||
|
| `bv` | `0.11.1` |
|
||||||
|
| `bytemuck` | `1.23.0` |
|
||||||
|
| `bytemuck_derive` | `1.8.1` |
|
||||||
|
| `byteorder` | `1.5.0` |
|
||||||
|
| `cargo_toml` | `0.19.2` |
|
||||||
|
| `cc` | `1.2.23` |
|
||||||
|
| `cfg-if` | `1.0.0` |
|
||||||
|
| `cfg_aliases` | `0.2.1` |
|
||||||
|
| `console_error_panic_hook` | `0.1.7` |
|
||||||
|
| `console_log` | `0.2.2` |
|
||||||
|
| `constant_time_eq` | `0.3.1` |
|
||||||
|
| `cpufeatures` | `0.2.17` |
|
||||||
|
| `crunchy` | `0.2.3` |
|
||||||
|
| `crypto-common` | `0.1.6` |
|
||||||
|
| `curve25519-dalek` | `4.1.3` |
|
||||||
|
| `curve25519-dalek-derive` | `0.1.1` |
|
||||||
|
| `digest` | `0.10.7` |
|
||||||
|
| `digest` | `0.9.0` |
|
||||||
|
| `equivalent` | `1.0.2` |
|
||||||
|
| `fast-math` | `0.1.1` |
|
||||||
|
| `feature-probe` | `0.1.1` |
|
||||||
|
| `fiat-crypto` | `0.2.9` |
|
||||||
|
| `five8` | `0.2.1` |
|
||||||
|
| `five8_const` | `0.1.4` |
|
||||||
|
| `five8_core` | `0.1.2` |
|
||||||
|
| `generic-array` | `0.14.7` |
|
||||||
|
| `getrandom` | `0.1.16` |
|
||||||
|
| `getrandom` | `0.2.16` |
|
||||||
|
| `hashbrown` | `0.13.2` |
|
||||||
|
| `hashbrown` | `0.15.2` |
|
||||||
|
| `heck` | `0.3.3` |
|
||||||
|
| `hex` | `0.4.3` |
|
||||||
|
| `ieee754` | `0.2.6` |
|
||||||
|
| `indexmap` | `2.9.0` |
|
||||||
|
| `itoa` | `1.0.18` |
|
||||||
|
| `js-sys` | `0.3.77` |
|
||||||
|
| `keccak` | `0.1.5` |
|
||||||
|
| `lazy_static` | `1.5.0` |
|
||||||
|
| `libc` | `0.2.172` |
|
||||||
|
| `libsecp256k1` | `0.6.0` |
|
||||||
|
| `libsecp256k1-core` | `0.2.2` |
|
||||||
|
| `libsecp256k1-gen-ecmult` | `0.2.1` |
|
||||||
|
| `libsecp256k1-gen-genmult` | `0.2.1` |
|
||||||
|
| `lock_api` | `0.4.12` |
|
||||||
|
| `log` | `0.4.27` |
|
||||||
|
| `memchr` | `2.7.4` |
|
||||||
|
| `memoffset` | `0.9.1` |
|
||||||
|
| `num` | `0.4.3` |
|
||||||
|
| `num-bigint` | `0.4.6` |
|
||||||
|
| `num-complex` | `0.4.6` |
|
||||||
|
| `num-derive` | `0.4.2` |
|
||||||
|
| `num-integer` | `0.1.46` |
|
||||||
|
| `num-iter` | `0.1.45` |
|
||||||
|
| `num-rational` | `0.4.2` |
|
||||||
|
| `num-traits` | `0.2.19` |
|
||||||
|
| `once_cell` | `1.21.3` |
|
||||||
|
| `opaque-debug` | `0.3.1` |
|
||||||
|
| `parking_lot` | `0.12.3` |
|
||||||
|
| `parking_lot_core` | `0.9.10` |
|
||||||
|
| `ppv-lite86` | `0.2.21` |
|
||||||
|
| `proc-macro-crate` | `0.1.5` |
|
||||||
|
| `proc-macro-crate` | `3.3.0` |
|
||||||
|
| `proc-macro2` | `1.0.95` |
|
||||||
|
| `pyth-solana-receiver-sdk` | `0.6.0` |
|
||||||
|
| `pythnet-sdk` | `2.3.1` |
|
||||||
|
| `quote` | `1.0.40` |
|
||||||
|
| `rand` | `0.7.3` |
|
||||||
|
| `rand` | `0.8.5` |
|
||||||
|
| `rand_chacha` | `0.2.2` |
|
||||||
|
| `rand_chacha` | `0.3.1` |
|
||||||
|
| `rand_core` | `0.5.1` |
|
||||||
|
| `rand_core` | `0.6.4` |
|
||||||
|
| `rand_hc` | `0.2.0` |
|
||||||
|
| `redox_syscall` | `0.5.12` |
|
||||||
|
| `regex` | `1.12.3` |
|
||||||
|
| `regex-automata` | `0.4.14` |
|
||||||
|
| `regex-syntax` | `0.8.10` |
|
||||||
|
| `rustc_version` | `0.4.1` |
|
||||||
|
| `rustversion` | `1.0.20` |
|
||||||
|
| `ryu` | `1.0.23` |
|
||||||
|
| `scopeguard` | `1.2.0` |
|
||||||
|
| `semver` | `1.0.26` |
|
||||||
|
| `serde` | `1.0.219` |
|
||||||
|
| `serde_bytes` | `0.11.17` |
|
||||||
|
| `serde_derive` | `1.0.219` |
|
||||||
|
| `serde_json` | `1.0.140` |
|
||||||
|
| `serde_spanned` | `0.6.9` |
|
||||||
|
| `sha2` | `0.10.9` |
|
||||||
|
| `sha2` | `0.9.9` |
|
||||||
|
| `sha3` | `0.10.8` |
|
||||||
|
| `shlex` | `1.3.0` |
|
||||||
|
| `slow_primes` | `0.1.14` |
|
||||||
|
| `smallvec` | `1.15.0` |
|
||||||
|
| `solana-account` | `2.2.1` |
|
||||||
|
| `solana-account-info` | `2.2.1` |
|
||||||
|
| `solana-address-lookup-table-interface` | `2.2.2` |
|
||||||
|
| `solana-atomic-u64` | `2.2.1` |
|
||||||
|
| `solana-big-mod-exp` | `2.2.1` |
|
||||||
|
| `solana-bincode` | `2.2.1` |
|
||||||
|
| `solana-blake3-hasher` | `2.2.1` |
|
||||||
|
| `solana-borsh` | `2.2.1` |
|
||||||
|
| `solana-clock` | `2.2.2` |
|
||||||
|
| `solana-cpi` | `2.2.1` |
|
||||||
|
| `solana-decode-error` | `2.3.0` |
|
||||||
|
| `solana-define-syscall` | `2.3.0` |
|
||||||
|
| `solana-epoch-rewards` | `2.2.1` |
|
||||||
|
| `solana-epoch-schedule` | `2.2.1` |
|
||||||
|
| `solana-example-mocks` | `2.2.1` |
|
||||||
|
| `solana-feature-gate-interface` | `2.2.2` |
|
||||||
|
| `solana-fee-calculator` | `2.2.1` |
|
||||||
|
| `solana-hash` | `2.3.0` |
|
||||||
|
| `solana-instruction` | `2.3.0` |
|
||||||
|
| `solana-instructions-sysvar` | `2.2.2` |
|
||||||
|
| `solana-keccak-hasher` | `2.2.1` |
|
||||||
|
| `solana-last-restart-slot` | `2.2.1` |
|
||||||
|
| `solana-loader-v2-interface` | `2.2.1` |
|
||||||
|
| `solana-loader-v3-interface` | `5.0.0` |
|
||||||
|
| `solana-loader-v4-interface` | `2.2.1` |
|
||||||
|
| `solana-message` | `2.4.0` |
|
||||||
|
| `solana-msg` | `2.2.1` |
|
||||||
|
| `solana-native-token` | `2.2.2` |
|
||||||
|
| `solana-nonce` | `2.2.1` |
|
||||||
|
| `solana-program` | `2.3.0` |
|
||||||
|
| `solana-program-entrypoint` | `2.2.1` |
|
||||||
|
| `solana-program-error` | `2.2.2` |
|
||||||
|
| `solana-program-memory` | `2.2.1` |
|
||||||
|
| `solana-program-option` | `2.2.1` |
|
||||||
|
| `solana-program-pack` | `2.2.1` |
|
||||||
|
| `solana-pubkey` | `2.4.0` |
|
||||||
|
| `solana-rent` | `2.2.1` |
|
||||||
|
| `solana-sanitize` | `2.2.1` |
|
||||||
|
| `solana-sdk-ids` | `2.2.1` |
|
||||||
|
| `solana-sdk-macro` | `2.2.1` |
|
||||||
|
| `solana-secp256k1-recover` | `2.2.1` |
|
||||||
|
| `solana-serde-varint` | `2.2.2` |
|
||||||
|
| `solana-serialize-utils` | `2.2.1` |
|
||||||
|
| `solana-sha256-hasher` | `2.2.1` |
|
||||||
|
| `solana-short-vec` | `2.2.1` |
|
||||||
|
| `solana-slot-hashes` | `2.2.1` |
|
||||||
|
| `solana-slot-history` | `2.2.1` |
|
||||||
|
| `solana-stable-layout` | `2.2.1` |
|
||||||
|
| `solana-stake-interface` | `1.2.1` |
|
||||||
|
| `solana-system-interface` | `1.0.0` |
|
||||||
|
| `solana-sysvar` | `2.2.2` |
|
||||||
|
| `solana-sysvar-id` | `2.2.1` |
|
||||||
|
| `solana-transaction-error` | `2.2.1` |
|
||||||
|
| `solana-vote-interface` | `2.2.5` |
|
||||||
|
| `subtle` | `2.6.1` |
|
||||||
|
| `syn` | `1.0.109` |
|
||||||
|
| `syn` | `2.0.117` |
|
||||||
|
| `thiserror` | `1.0.69` |
|
||||||
|
| `thiserror` | `2.0.12` |
|
||||||
|
| `thiserror-impl` | `1.0.69` |
|
||||||
|
| `thiserror-impl` | `2.0.12` |
|
||||||
|
| `tinyvec` | `1.9.0` |
|
||||||
|
| `tinyvec_macros` | `0.1.1` |
|
||||||
|
| `toml` | `0.5.11` |
|
||||||
|
| `toml` | `0.8.22` |
|
||||||
|
| `toml_datetime` | `0.6.9` |
|
||||||
|
| `toml_edit` | `0.22.26` |
|
||||||
|
| `toml_write` | `0.1.2` |
|
||||||
|
| `typenum` | `1.18.0` |
|
||||||
|
| `unicode-ident` | `1.0.18` |
|
||||||
|
| `unicode-segmentation` | `1.12.0` |
|
||||||
|
| `version_check` | `0.9.5` |
|
||||||
|
| `wasi` | `0.11.0+wasi-snapshot-preview1` |
|
||||||
|
| `wasi` | `0.9.0+wasi-snapshot-preview1` |
|
||||||
|
| `wasm-bindgen` | `0.2.100` |
|
||||||
|
| `wasm-bindgen-backend` | `0.2.100` |
|
||||||
|
| `wasm-bindgen-macro` | `0.2.100` |
|
||||||
|
| `wasm-bindgen-macro-support` | `0.2.100` |
|
||||||
|
| `wasm-bindgen-shared` | `0.2.100` |
|
||||||
|
| `web-sys` | `0.3.77` |
|
||||||
|
| `windows-targets` | `0.52.6` |
|
||||||
|
| `windows_aarch64_gnullvm` | `0.52.6` |
|
||||||
|
| `windows_aarch64_msvc` | `0.52.6` |
|
||||||
|
| `windows_i686_gnu` | `0.52.6` |
|
||||||
|
| `windows_i686_gnullvm` | `0.52.6` |
|
||||||
|
| `windows_i686_msvc` | `0.52.6` |
|
||||||
|
| `windows_x86_64_gnu` | `0.52.6` |
|
||||||
|
| `windows_x86_64_gnullvm` | `0.52.6` |
|
||||||
|
| `windows_x86_64_msvc` | `0.52.6` |
|
||||||
|
| `winnow` | `0.7.10` |
|
||||||
|
| `zerocopy` | `0.8.25` |
|
||||||
|
| `zerocopy-derive` | `0.8.25` |
|
||||||
|
| `zeroize` | `1.8.1` |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
Local workspace members in Cargo.lock (these are SHiNE programs, not third-party crate notices):
|
||||||
|
|
||||||
|
- `shine_login_guard@0.1.0`
|
||||||
|
- `shine_payments@0.2.0`
|
||||||
|
- `shine_users@0.1.0`
|
||||||
|
|
||||||
|
## Appendix C — upstream reference locations
|
||||||
|
|
||||||
|
- Twemoji graphics: https://github.com/twitter/twemoji
|
||||||
|
- Twemoji license: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
- QR Code Generator: http://www.d-project.com/
|
||||||
|
- Solana Web3.js: https://github.com/solana-foundation/solana-web3.js
|
||||||
|
- Noble curves: https://github.com/paulmillr/noble-curves
|
||||||
|
- Noble hashes: https://github.com/paulmillr/noble-hashes
|
||||||
|
- Turbo SDK: https://github.com/ardriveapp/turbo-sdk
|
||||||
|
- Arweave JS v1.15.7 package metadata: https://app.unpkg.com/arweave%401.15.7/files/package.json
|
||||||
|
- Anchor JS v0.31.1 package metadata: https://app.unpkg.com/%40coral-xyz/anchor%400.31.1/files/package.json
|
||||||
|
- Anchor Rust v0.31.1 source manifest: https://docs.rs/crate/anchor-lang/0.31.1/source/Cargo.toml.orig
|
||||||
|
- Solana Rust v2.3.0 source manifest: https://docs.rs/crate/solana-program/2.3.0/source/Cargo.toml
|
||||||
|
- Pyth SDK repository: https://github.com/pyth-network/pyth-crosschain
|
||||||
|
- Metaplex Token Metadata: https://github.com/metaplex-foundation/mpl-token-metadata
|
||||||
|
- text-encoding-utf-8 source license: https://github.com/arv/text-encoding-utf-8/blob/master/LICENSE.md
|
||||||
|
- OkHttp 4.12.0 Maven metadata: https://central.sonatype.com/artifact/com.squareup.okhttp3/okhttp/4.12.0
|
||||||
|
- Gradle: https://github.com/gradle/gradle/blob/master/LICENSE
|
||||||
|
- Python cryptography: https://pypi.org/project/cryptography/
|
||||||
|
- Python websockets: https://pypi.org/project/websockets/
|
||||||
|
- Python requests: https://pypi.org/project/requests/
|
||||||
|
- arweave-python-client: https://pypi.org/project/arweave-python-client/
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
This file documents third-party copyright and license information only. It is not the SHiNE project license and does not supersede the original license text of any upstream software or asset.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,2 +1,2 @@
|
|||||||
client.version=1.20.15
|
client.version=1.20.16
|
||||||
server.version=1.16.12
|
server.version=1.16.13
|
||||||
|
|||||||
Generated
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"license": "ISC",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coral-xyz/anchor": "^0.31.1",
|
"@coral-xyz/anchor": "^0.31.1",
|
||||||
"@metaplex-foundation/mpl-token-metadata": "^3.4.0",
|
"@metaplex-foundation/mpl-token-metadata": "^3.4.0",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"license": "ISC",
|
"private": true,
|
||||||
|
"license": "UNLICENSED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
|
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
|
||||||
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
|
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
|
||||||
|
|||||||
Reference in New Issue
Block a user