{"id":16886184,"url":"https://github.com/yanue/starkex","last_synced_at":"2025-03-22T08:30:40.759Z","repository":{"id":41478419,"uuid":"429357997","full_name":"yanue/starkex","owner":"yanue","description":"stark key authentication library, signature generator for dydx exchange","archived":false,"fork":false,"pushed_at":"2023-12-13T03:01:54.000Z","size":132,"stargazers_count":19,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T09:45:35.814Z","etag":null,"topics":["dydx","dydx-signature","starkex","starkex-crypto","starkware"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-18T08:49:43.000Z","updated_at":"2024-02-05T12:32:14.000Z","dependencies_parsed_at":"2023-12-13T04:21:27.304Z","dependency_job_id":"1ae0fe3e-d52a-4e03-be5b-8934e5d825b2","html_url":"https://github.com/yanue/starkex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanue%2Fstarkex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanue%2Fstarkex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanue%2Fstarkex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanue%2Fstarkex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanue","download_url":"https://codeload.github.com/yanue/starkex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931313,"owners_count":20534005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dydx","dydx-signature","starkex","starkex-crypto","starkware"],"created_at":"2024-10-13T16:38:36.722Z","updated_at":"2025-03-22T08:30:40.350Z","avatar_url":"https://github.com/yanue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stark key authentication library, signature generator for dydx exchange\n\nfor the following operations:\n\n- Place an order\n- Withdraw funds\n\n\u003e link : https://docs.dydx.exchange/#authentication\n\n### Installation\n\n```\ngo get github.com/yanue/starkex\n```\n\n### demos\n\n#### order sign demo\n\n```\n    const MOCK_PRIVATE_KEY = \"58c7d5a90b1776bde86ebac077e053ed85b0f7164f53b080304a531947f46e3\"\n    param := OrderSignParam{\n\t\tNetworkId:  NETWORK_ID_ROPSTEN,\n\t\tMarket:     \"ETH-USD\",\n\t\tSide:       \"BUY\",\n\t\tPositionId: 12345,\n\t\tHumanSize:  \"145.0005\",\n\t\tHumanPrice: \"350.00067\",\n\t\tLimitFee:   \"0.125\",\n\t\tClientId:   \"This is an ID that the client came up with to describe this order\",\n\t\tExpiration: \"2020-09-17T04:15:55.028Z\",\n\t}\n\tsign, err := OrderSign(MOCK_PRIVATE_KEY, param)\n\t// 00cecbe513ecdbf782cd02b2a5efb03e58d5f63d15f2b840e9bc0029af04e8dd0090b822b16f50b2120e4ea9852b340f7936ff6069d02acca02f2ed03029ace5\n\tfmt.Println(\"sign,err\", sign, err)\n```\n\n#### withdraw sign demo\n\n```\n    const MOCK_PRIVATE_KEY = \"58c7d5a90b1776bde86ebac077e053ed85b0f7164f53b080304a531947f46e3\"\n    param := WithdrawSignParam{\n\t\tNetworkId:   NETWORK_ID_ROPSTEN,\n\t\tPositionId:  12345,\n\t\tHumanAmount: \"49.478023\",\n\t\tClientId:    \"This is an ID that the client came up with to describe this withdrawal\",\n\t\tExpiration:  \"2020-09-17T04:15:55.028Z\",\n\t}\n\tsign, err := WithdrawSign(MOCK_PRIVATE_KEY, param)\n\t// 05e48c33f8205a5359c95f1bd7385c1c1f587e338a514298c07634c0b6c952ba0687d6980502a5d7fa84ef6fdc00104db22c43c7fb83e88ca84f19faa9ee3de1\n\tfmt.Println(\"sign,err\", sign, err)\n```\n\n#### transfer sign demo (fast_withdraw)\n\n```\n    const MOCK_PRIVATE_KEY = \"58c7d5a90b1776bde86ebac077e053ed85b0f7164f53b080304a531947f46e3\"\n    param := TransferSignParam{\n\t\tNetworkId:          NETWORK_ID_MAINNET,\n\t\tCreditAmount:       \"1\",\n\t\tDebitAmount:        \"2\",\n\t\tSenderPositionId:   12345,\n\t\tReceiverPositionId: 67890,\n\t\tReceiverPublicKey:  \"04a9ecd28a67407c3cff8937f329ca24fd631b1d9ca2b9f2df47c7ebf72bf0b0\",\n\t\tReceiverAddress:    \"0x1234567890123456789012345678901234567890\",\n\t\tExpiration:         \"2020-09-17T04:15:55.028Z\",\n\t\tClientId:           \"This is an ID that the client came up with to describe this transfer\",\n\t}\n\tsign, err := TransferSign(MOCK_PRIVATE_KEY, param)\n\t// 0278aeb361938d4c377950487bb770fc9464bf5352e19117c03243efad4e10a302bb3983e05676c7952caa4acdc1a83426d5c8cb8c56d7f6c477cfdafd37718a\n\tfmt.Println(\"sign,err\", sign, err)\n```\n\n### inspired by\n\n\u003e https://github.com/dydxprotocol/dydx-v3-python\n\n\u003e https://github.com/starkware-libs/starkex-resources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanue%2Fstarkex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanue%2Fstarkex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanue%2Fstarkex/lists"}