Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/339-Labs/wallet-platform-mpc-go
/ functions
Functions
261 in github.com/339-Labs/wallet-platform-mpc-go
⨍
Functions
261
◇
Types & classes
64
↓ 15 callers
Method
RegisterHandler
RegisterHandler 注册消息处理器 只注册到msgHandlers,消息会通过handlePubSubMessages统一路由 不再同时注册到PubSub,避免消息被处理两次
internal/p2p/host.go:310
↓ 15 callers
Function
errorResponse
(c *gin.Context, status int, err string)
internal/api/server.go:143
↓ 14 callers
Function
successResponse
响应函数
internal/api/server.go:136
↓ 11 callers
Method
Close
Close 关闭数据库
internal/storage/leveldb.go:50
↓ 9 callers
Method
BroadcastMessage
BroadcastMessage 广播消息
internal/p2p/host.go:298
↓ 9 callers
Method
GetWallet
GetWallet 获取钱包信息
internal/wallet/manager.go:145
↓ 7 callers
Function
CreatePartyIDs
CreatePartyIDs 创建参与方ID列表
internal/tss/party.go:46
↓ 7 callers
Function
GeneratePartyID
GeneratePartyID 生成参与方ID
internal/tss/party.go:37
↓ 6 callers
Function
GetPartyIndex
GetPartyIndex 获取参与方在排序列表中的索引
internal/tss/party.go:60
↓ 6 callers
Method
SaveSession
SaveSession 保存会话
internal/storage/session_repo.go:24
↓ 5 callers
Method
Delete
Delete 批量删除
internal/storage/leveldb.go:157
↓ 5 callers
Method
GetAllByPrefix
GetAllByPrefix 获取所有匹配前缀的键值对
internal/storage/leveldb.go:119
↓ 5 callers
Method
GetSession
GetSession 获取会话
internal/tss/keygen.go:235
↓ 5 callers
Method
Start
Start 启动协调器
internal/tss/coordinator.go:125
↓ 5 callers
Method
Stop
Stop 停止协调器
internal/tss/coordinator.go:147
↓ 5 callers
Function
contains
contains 检查切片是否包含元素
internal/tss/resharing.go:648
↓ 5 callers
Method
handleError
handleError 处理错误
internal/tss/signing.go:432
↓ 5 callers
Method
handleError
handleError 处理错误
internal/tss/keygen.go:452
↓ 4 callers
Method
CreateSession
CreateSession 创建会话消息处理器
internal/p2p/message.go:97
↓ 4 callers
Method
GetNodeID
GetNodeID 获取节点ID
internal/p2p/host.go:320
↓ 4 callers
Method
PrepareKeygen
PrepareKeygen 准备密钥生成会话(创建会话但不启动TSS协议)
internal/tss/keygen.go:111
↓ 4 callers
Method
PrepareSigning
PrepareSigning 准备签名会话(创建会话但不启动TSS协议)
internal/tss/signing.go:115
↓ 4 callers
Function
PublicKeyToHex
PublicKeyToHex 公钥转十六进制
internal/tss/party.go:126
↓ 4 callers
Method
Publish
Publish 发布消息到主题
internal/p2p/pubsub.go:195
↓ 4 callers
Method
Subscribe
Subscribe 订阅主题
internal/p2p/pubsub.go:145
↓ 3 callers
Method
CloseSession
CloseSession 关闭会话
internal/p2p/message.go:115
↓ 3 callers
Function
DeserializeMessage
DeserializeMessage 反序列化TSS消息
internal/tss/party.go:185
↓ 3 callers
Method
GetJSON
GetJSON 获取JSON对象
internal/storage/leveldb.go:94
↓ 3 callers
Method
GetKeyShare
GetKeyShare 获取密钥分片
internal/storage/keyshare_repo.go:77
↓ 3 callers
Method
PutJSON
PutJSON 存储JSON对象
internal/storage/leveldb.go:85
↓ 3 callers
Function
RecoverPublicKey
RecoverPublicKey 从签名数据重建公钥
internal/tss/party.go:145
↓ 3 callers
Method
SaveWallet
SaveWallet 保存钱包信息
internal/storage/wallet_repo.go:24
↓ 3 callers
Function
SerializeMessage
SerializeMessage 序列化TSS消息
internal/tss/party.go:165
↓ 3 callers
Method
Start
Start 启动TSS协议(在收到所有节点就绪确认后调用)
internal/tss/keygen.go:255
↓ 3 callers
Method
Stop
Stop 停止消息管理器
internal/p2p/message.go:84
↓ 3 callers
Method
UpdateSessionError
UpdateSessionError 更新会话错误
internal/storage/session_repo.go:61
↓ 3 callers
Method
UpdateSessionStatus
UpdateSessionStatus 更新会话状态
internal/storage/session_repo.go:51
↓ 3 callers
Method
Write
Write 执行批量操作
internal/storage/leveldb.go:162
↓ 3 callers
Method
handleError
handleError 处理错误
internal/tss/resharing.go:588
↓ 3 callers
Method
handleStream
handleStream 通用流处理
internal/p2p/host.go:408
↓ 2 callers
Method
BroadcastToParties
BroadcastToParties 广播消息给指定的参与方
internal/p2p/message.go:157
↓ 2 callers
Method
BroadcastToPartiesWithType
BroadcastToPartiesWithType 广播消息给指定的参与方(指定消息类型)
internal/p2p/message.go:162
↓ 2 callers
Function
DefaultConfig
DefaultConfig 返回默认配置
internal/config/config.go:68
↓ 2 callers
Function
DefaultPubSubConfig
DefaultPubSubConfig 默认配置
internal/p2p/pubsub.go:61
↓ 2 callers
Method
GetFullAddrs
GetFullAddrs 获取完整的P2P地址
internal/p2p/host.go:330
↓ 2 callers
Method
GetPeerID
GetPeerID 获取本节点的Peer ID
internal/p2p/host.go:315
↓ 2 callers
Method
GetSession
GetSession 获取会话
internal/storage/session_repo.go:31
↓ 2 callers
Method
Has
Has 检查键是否存在
internal/storage/leveldb.go:78
↓ 2 callers
Method
InitiateSign
InitiateSign 发起签名
internal/tss/coordinator.go:244
↓ 2 callers
Method
ReshareWallet
ReshareWallet 重新分享钱包密钥 用于:1. 更换参与方 2. 修改阈值 3. 定期刷新密钥分片
internal/wallet/manager.go:385
↓ 2 callers
Method
SaveKeyShare
SaveKeyShare 保存密钥分片(加密存储)
internal/storage/keyshare_repo.go:46
↓ 2 callers
Method
SendToParty
SendToParty 发送消息给指定的参与方
internal/p2p/message.go:176
↓ 2 callers
Method
SendToPartyWithType
SendToPartyWithType 发送消息给指定的参与方(指定消息类型)
internal/p2p/message.go:181
↓ 2 callers
Method
SendToSession
SendToSession 发送消息到会话
internal/p2p/message.go:136
↓ 2 callers
Function
SignatureToHex
SignatureToHex 签名转十六进制
internal/tss/party.go:245
↓ 2 callers
Method
Start
Start 启动TSS协议(在收到所有节点就绪确认后调用)
internal/tss/signing.go:268
↓ 2 callers
Method
StartSigning
StartSigning 开始签名(兼容旧接口,内部调用 PrepareSigning + Start)
internal/tss/signing.go:105
↓ 2 callers
Method
WaitForCompletion
WaitForCompletion 等待完成
internal/tss/signing.go:475
↓ 2 callers
Method
WaitForCompletion
WaitForCompletion 等待完成
internal/tss/keygen.go:488
↓ 2 callers
Method
addPeer
addPeer 添加发现的节点
internal/p2p/discovery.go:243
↓ 2 callers
Method
createResharingParams
createResharingParams 创建重分享参数 threshold 表示签名所需的最少节点数,TSS 库需要 threshold-1
internal/tss/resharing.go:342
↓ 2 callers
Method
discoverPeers
discoverPeers 发现新节点
internal/p2p/discovery.go:220
↓ 2 callers
Method
routeToSession
routeToSession 路由消息到会话
internal/p2p/message.go:245
↓ 2 callers
Method
run
run 运行重分享会话
internal/tss/resharing.go:389
↓ 2 callers
Method
waitForReady
waitForReady 等待所有节点就绪
internal/tss/coordinator.go:332
↓ 1 callers
Method
ConnectToPeer
ConnectToPeer 连接到对等节点
internal/p2p/host.go:253
↓ 1 callers
Function
CreateKeygenParams
CreateKeygenParams 创建密钥生成参数 threshold 参数表示签名所需的最少节点数(用户视角) TSS 库内部使用的 threshold 是 t,其中 t+1 = 用户threshold
internal/tss/party.go:72
↓ 1 callers
Function
CreateSigningParams
CreateSigningParams 创建签名参数 threshold 参数表示签名所需的最少节点数(用户视角) TSS 库内部使用的 threshold 是 t,其中 t+1 = 用户threshold
internal/tss/party.go:98
↓ 1 callers
Method
CreateWallet
CreateWallet 创建新钱包(发起DKG)
internal/wallet/manager.go:61
↓ 1 callers
Method
DeleteKeyShare
DeleteKeyShare 删除密钥分片
internal/storage/keyshare_repo.go:103
↓ 1 callers
Method
DeleteWallet
DeleteWallet 删除钱包
internal/wallet/manager.go:160
↓ 1 callers
Method
Get
Get 获取值
internal/storage/leveldb.go:64
↓ 1 callers
Method
GetAddress
GetAddress 获取钱包地址
internal/wallet/manager.go:375
↓ 1 callers
Method
GetConnectedPeers
GetConnectedPeers 获取已连接的节点
internal/p2p/host.go:340
↓ 1 callers
Method
GetKeyShareMeta
GetKeyShareMeta 获取密钥分片元数据
internal/storage/keyshare_repo.go:123
↓ 1 callers
Method
GetOnlineNodes
GetOnlineNodes 获取在线节点
internal/p2p/node.go:165
↓ 1 callers
Method
GetPubSub
GetPubSub 获取PubSub管理器
internal/p2p/host.go:380
↓ 1 callers
Function
GetPublicKeyFromLocalData
GetPublicKeyFromLocalData 从本地数据获取公钥
internal/tss/party.go:132
↓ 1 callers
Method
GetResult
GetResult 获取结果
internal/tss/resharing.go:610
↓ 1 callers
Method
GetResult
GetResult 获取结果
internal/tss/signing.go:454
↓ 1 callers
Method
GetResult
GetResult 获取结果
internal/tss/keygen.go:474
↓ 1 callers
Function
GetSignature
GetSignature 从签名数据获取签名
internal/tss/party.go:216
↓ 1 callers
Method
GetStatus
GetStatus 获取状态
internal/tss/resharing.go:603
↓ 1 callers
Method
GetStatus
GetStatus 获取状态
internal/tss/signing.go:447
↓ 1 callers
Method
GetStatus
GetStatus 获取状态
internal/tss/keygen.go:467
↓ 1 callers
Method
IncomingChan
IncomingChan 获取传入消息通道
internal/p2p/pubsub.go:333
↓ 1 callers
Method
InitiateKeygen
InitiateKeygen 发起密钥生成
internal/tss/coordinator.go:154
↓ 1 callers
Method
ListWallets
ListWallets 列出所有钱包
internal/wallet/manager.go:155
↓ 1 callers
Method
ListWallets
ListWallets 列出所有钱包
internal/storage/wallet_repo.go:51
↓ 1 callers
Function
LoadConfig
LoadConfig 从文件加载配置
internal/config/config.go:109
↓ 1 callers
Method
NewBatch
NewBatch 创建批量操作
internal/storage/leveldb.go:144
↓ 1 callers
Function
NewCoordinator
NewCoordinator 创建协调器
internal/tss/coordinator.go:98
↓ 1 callers
Function
NewDiscovery
NewDiscovery 创建发现服务
internal/p2p/discovery.go:62
↓ 1 callers
Function
NewKeyShareRepository
NewKeyShareRepository 创建密钥分片存储库
internal/storage/keyshare_repo.go:29
↓ 1 callers
Function
NewKeygenManager
NewKeygenManager 创建密钥生成管理器
internal/tss/keygen.go:80
↓ 1 callers
Function
NewManager
NewManager 创建钱包管理器
internal/wallet/manager.go:37
↓ 1 callers
Function
NewMessageManager
NewMessageManager 创建消息管理器
internal/p2p/message.go:54
↓ 1 callers
Function
NewNodeManager
NewNodeManager 创建节点管理器
internal/p2p/node.go:74
↓ 1 callers
Function
NewP2PHost
NewP2PHost 创建P2P主机
internal/p2p/host.go:81
↓ 1 callers
Function
NewPubSubManager
NewPubSubManager 创建PubSub管理器
internal/p2p/pubsub.go:72
next →
1–100 of 261, ranked by callers